slitaz-modular rev 123

Updated lighttpd configs.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jul 11 11:27:15 2011 +0000 (2011-07-11)
parents 84764c5713d0
children 6f3a0e2655ab
files initramfs/etc/lighttpd/vhosts-local-tank.conf initramfs/etc/lighttpd/vhosts-tank.conf
line diff
     1.1 --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf	Wed Jun 29 01:12:25 2011 +0000
     1.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf	Mon Jul 11 11:27:15 2011 +0000
     1.3 @@ -28,18 +28,10 @@
     1.4    accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
     1.5    
     1.6    include "awstats.conf"
     1.7 -  index-file.names += ( "index.php" )
     1.8 -  index-file.names += ( "index.html" )
     1.9 -  
    1.10 -  url.rewrite-once = (
    1.11 -    "^/about" => "/fr/about",
    1.12 -	"^/artwork" => "/fr/artwork",
    1.13 -	"^/devel" => "/fr/devel",
    1.14 -    "^/doc" => "/fr/doc",
    1.15 -	"^/get" => "/fr/get",
    1.16 -	"^/packages" => "/fr/packages"
    1.17 +  index-file.names += ( "index.cgi", "index.php", "index.html" )
    1.18 +  cgi.assign = (
    1.19 +    ".cgi" => "/bin/sh"
    1.20    )
    1.21 - 
    1.22  }
    1.23  
    1.24  # pro.slitaz.org
    1.25 @@ -72,6 +64,9 @@
    1.26    server.document-root = "/home/slitaz/www/boot"
    1.27    server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
    1.28    accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
    1.29 +  cgi.assign = (
    1.30 +    ".cgi" => "/bin/sh"
    1.31 +  )
    1.32  }
    1.33  
    1.34  # pkgs.slitaz.org
    1.35 @@ -93,16 +88,6 @@
    1.36    accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
    1.37  }
    1.38  
    1.39 -# cook.slitaz.org
    1.40 -#
    1.41 -$HTTP["host"] =~ "cook\.slitaz\.org$" {
    1.42 -  cgi.assign = (
    1.43 -    ".cgi" => "/bin/sh"
    1.44 -  )
    1.45 -  index-file.names = ( "cooker.cgi" )
    1.46 -  server.document-root = "/home/slitaz/www/cook"
    1.47 -}
    1.48 -
    1.49  # hg.slitaz.org (Mercurial repos)
    1.50  #
    1.51  $HTTP["host"] =~ "hg\.slitaz\.org" {
    1.52 @@ -111,6 +96,16 @@
    1.53    )
    1.54    server.document-root = "/home/slitaz/www/hg"
    1.55    url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
    1.56 +  auth.backend = "plain"
    1.57 +  auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
    1.58 +  $HTTP["querystring"] =~ "cmd=unbundle" {
    1.59 +    auth.require = (   "" => (
    1.60 +      "method"  => "basic",
    1.61 +      "realm"   => "SliTaz Mercurial repositories protected area",
    1.62 +      "require" => "vaild-user"
    1.63 +      )
    1.64 +    )
    1.65 +  }
    1.66  }
    1.67  
    1.68  # repos.slitaz.org (Mercurial repos with auth and write access)
    1.69 @@ -192,6 +187,16 @@
    1.70    )
    1.71  }
    1.72  
    1.73 +# cook.slitaz.org
    1.74 +#
    1.75 +$HTTP["host"] =~ "cook\.slitaz\.org$" {
    1.76 +  cgi.assign = (
    1.77 +    ".cgi" => "/bin/sh"
    1.78 +  )
    1.79 +  index-file.names = ( "cooker.cgi" )
    1.80 +  server.document-root = "/home/slitaz/www/cook"
    1.81 +}
    1.82 +
    1.83  # ssfs.slitaz.org
    1.84  #
    1.85  $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
     2.1 --- a/initramfs/etc/lighttpd/vhosts-tank.conf	Wed Jun 29 01:12:25 2011 +0000
     2.2 +++ b/initramfs/etc/lighttpd/vhosts-tank.conf	Mon Jul 11 11:27:15 2011 +0000
     2.3 @@ -28,18 +28,10 @@
     2.4    accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
     2.5    
     2.6    include "awstats.conf"
     2.7 -  index-file.names += ( "index.php" )
     2.8 -  index-file.names += ( "index.html" )
     2.9 -  
    2.10 -  url.rewrite-once = (
    2.11 -    "^/about" => "/fr/about",
    2.12 -	"^/artwork" => "/fr/artwork",
    2.13 -	"^/devel" => "/fr/devel",
    2.14 -    "^/doc" => "/fr/doc",
    2.15 -	"^/get" => "/fr/get",
    2.16 -	"^/packages" => "/fr/packages"
    2.17 +  index-file.names += ( "index.cgi", "index.php", "index.html" )
    2.18 +  cgi.assign = (
    2.19 +    ".cgi" => "/bin/sh"
    2.20    )
    2.21 - 
    2.22  }
    2.23  
    2.24  # pro.slitaz.org