wok-6.x rev 7602
mirror-tools: add scm in vhosts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 11 13:03:20 2010 +0100 (2010-12-11) |
parents | ff8355306733 |
children | f31c4e824aa4 |
files | mirror-tools/stuff/etc/lighttpd/vhosts.conf |
line diff
1.1 --- a/mirror-tools/stuff/etc/lighttpd/vhosts.conf Sat Dec 11 06:48:52 2010 +0000 1.2 +++ b/mirror-tools/stuff/etc/lighttpd/vhosts.conf Sat Dec 11 13:03:20 2010 +0100 1.3 @@ -11,7 +11,7 @@ 1.4 1.5 # mirror.slitaz.org (Server canonical hostname) 1.6 # 1.7 -$HTTP["host"] =~ "^mirror\.slitaz\.org$" { 1.8 +$HTTP["host"] =~ "^mirror([0-9]*)\.slitaz\.org$" { 1.9 server.document-root = "/var/www/slitaz/mirror" 1.10 server.errorlog = "/var/log/lighttpd/mirror.slitaz.org-error.log" 1.11 accesslog.filename = "/var/log/lighttpd/mirror.slitaz.org-access.log" 1.12 @@ -169,3 +169,16 @@ 1.13 index-file.names += ( "hgwebdir.py" ) 1.14 } 1.15 1.16 +# scn.slitaz.org (SliTaz Community Network) 1.17 +# 1.18 +$HTTP["host"] =~ "scn\.slitaz\.org$" { 1.19 + server.document-root = "/var/www/scn" 1.20 + server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log" 1.21 + accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log" 1.22 + url.rewrite-final = ( 1.23 + "^/system/test/(.*)$" => "/index.php?q=system/test/$1", 1.24 + "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2", 1.25 + "^/([^.?]*)$" => "/index.php?q=$1", 1.26 + "^/rss.xml" => "/index.php?q=rss.xml" 1.27 + ) 1.28 +}