slitaz-modular rev 105

Add cloud.slitaz.org and cook.slitaz.org support into lighttpd configs.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 17 20:11:46 2011 +0000 (2011-05-17)
parents 4cf0a616ee82
children 6de77b0fb2f8
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	Sat May 14 17:35:38 2011 +0000
     1.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf	Tue May 17 20:11:46 2011 +0000
     1.3 @@ -93,6 +93,12 @@
     1.4    accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
     1.5  }
     1.6  
     1.7 +$HTTP["host"] =~ "cook\.slitaz\.org$" {
     1.8 +  server.document-root = "/home/slitaz/www/bb"
     1.9 +  server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
    1.10 +  accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
    1.11 +}
    1.12 +
    1.13  # hg.slitaz.org (Mercurial repos)
    1.14  #
    1.15  $HTTP["host"] =~ "hg\.slitaz\.org" {
    1.16 @@ -162,6 +168,26 @@
    1.17    )
    1.18  }
    1.19  
    1.20 +
    1.21 +# cloud.slitaz.org
    1.22 +#
    1.23 +$HTTP["host"] =~ "cloud\.slitaz\.org" {
    1.24 +  cgi.assign = (
    1.25 +   ".cgi" => "/bin/sh"
    1.26 +  )
    1.27 +  index-file.names = ( "cloud.cgi" )
    1.28 +  server.document-root = "/home/slitaz/www/cloud"
    1.29 +  auth.backend = "plain"
    1.30 +  auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
    1.31 +  auth.require = ( "/" =>
    1.32 +    (
    1.33 +    "method" => "basic",
    1.34 +    "realm" => "SliTaz Cloud protected area",
    1.35 +    "require" => "valid-user"
    1.36 +    )
    1.37 +  )
    1.38 +}
    1.39 +
    1.40  # pizza.slitaz.org
    1.41  #
    1.42  $HTTP["host"] =~ "pizza\.slitaz\.org" {
     2.1 --- a/initramfs/etc/lighttpd/vhosts-tank.conf	Sat May 14 17:35:38 2011 +0000
     2.2 +++ b/initramfs/etc/lighttpd/vhosts-tank.conf	Tue May 17 20:11:46 2011 +0000
     2.3 @@ -198,6 +198,35 @@
     2.4    )
     2.5  }
     2.6  
     2.7 +# cook.slitaz.org
     2.8 +#
     2.9 +$HTTP["host"] =~ "cook\.slitaz\.org$" {
    2.10 +  cgi.assign = (
    2.11 +    ".cgi" => "/bin/sh"
    2.12 +  )
    2.13 +  index-file.names = ( "cooker.cgi" )
    2.14 +  server.document-root = "/home/slitaz/www/cook"
    2.15 +}
    2.16 +
    2.17 +# cloud.slitaz.org
    2.18 +#
    2.19 +$HTTP["host"] =~ "cloud\.slitaz\.org$" {
    2.20 +  cgi.assign = (
    2.21 +   ".cgi" => "/bin/sh"
    2.22 +  )
    2.23 +  index-file.names = ( "cloud.cgi" )
    2.24 +  server.document-root = "/home/slitaz/www/cloud"
    2.25 +  auth.backend = "plain"
    2.26 +  auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
    2.27 +  auth.require = ( "/" =>
    2.28 +    (
    2.29 +    "method" => "basic"
    2.30 +    "realm" => "SliTaz Cloud protected area",
    2.31 +    "require" => "valid-user"
    2.32 +    )
    2.33 +  )
    2.34 +}
    2.35 +
    2.36  # These hosts are personnal website for me and my family, pankso.
    2.37  
    2.38