# HG changeset patch # User Christopher Rogers # Date 1305663106 0 # Node ID 8b29ddcb68225a643b999508053cf3a0f7356bc9 # Parent 4cf0a616ee82b3a2073001884a842d8a41bae2cb Add cloud.slitaz.org and cook.slitaz.org support into lighttpd configs. diff -r 4cf0a616ee82 -r 8b29ddcb6822 initramfs/etc/lighttpd/vhosts-local-tank.conf --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf Sat May 14 17:35:38 2011 +0000 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf Tue May 17 20:11:46 2011 +0000 @@ -93,6 +93,12 @@ accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log" } +$HTTP["host"] =~ "cook\.slitaz\.org$" { + server.document-root = "/home/slitaz/www/bb" + server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log" + accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log" +} + # hg.slitaz.org (Mercurial repos) # $HTTP["host"] =~ "hg\.slitaz\.org" { @@ -162,6 +168,26 @@ ) } + +# cloud.slitaz.org +# +$HTTP["host"] =~ "cloud\.slitaz\.org" { + cgi.assign = ( + ".cgi" => "/bin/sh" + ) + index-file.names = ( "cloud.cgi" ) + server.document-root = "/home/slitaz/www/cloud" + auth.backend = "plain" + auth.backend.plain.userfile = "/etc/lighttpd/cloud.users" + auth.require = ( "/" => + ( + "method" => "basic", + "realm" => "SliTaz Cloud protected area", + "require" => "valid-user" + ) + ) +} + # pizza.slitaz.org # $HTTP["host"] =~ "pizza\.slitaz\.org" { diff -r 4cf0a616ee82 -r 8b29ddcb6822 initramfs/etc/lighttpd/vhosts-tank.conf --- a/initramfs/etc/lighttpd/vhosts-tank.conf Sat May 14 17:35:38 2011 +0000 +++ b/initramfs/etc/lighttpd/vhosts-tank.conf Tue May 17 20:11:46 2011 +0000 @@ -198,6 +198,35 @@ ) } +# cook.slitaz.org +# +$HTTP["host"] =~ "cook\.slitaz\.org$" { + cgi.assign = ( + ".cgi" => "/bin/sh" + ) + index-file.names = ( "cooker.cgi" ) + server.document-root = "/home/slitaz/www/cook" +} + +# cloud.slitaz.org +# +$HTTP["host"] =~ "cloud\.slitaz\.org$" { + cgi.assign = ( + ".cgi" => "/bin/sh" + ) + index-file.names = ( "cloud.cgi" ) + server.document-root = "/home/slitaz/www/cloud" + auth.backend = "plain" + auth.backend.plain.userfile = "/etc/lighttpd/cloud.users" + auth.require = ( "/" => + ( + "method" => "basic" + "realm" => "SliTaz Cloud protected area", + "require" => "valid-user" + ) + ) +} + # These hosts are personnal website for me and my family, pankso.