# HG changeset patch # User Pascal Bellard # Date 1292069000 -3600 # Node ID d0ddf56fa51fd26b14a610df9fa9e4c1408981fe # Parent ff8355306733e399d2cafa47953aaddbc6c38672 mirror-tools: add scm in vhosts diff -r ff8355306733 -r d0ddf56fa51f mirror-tools/stuff/etc/lighttpd/vhosts.conf --- a/mirror-tools/stuff/etc/lighttpd/vhosts.conf Sat Dec 11 06:48:52 2010 +0000 +++ b/mirror-tools/stuff/etc/lighttpd/vhosts.conf Sat Dec 11 13:03:20 2010 +0100 @@ -11,7 +11,7 @@ # mirror.slitaz.org (Server canonical hostname) # -$HTTP["host"] =~ "^mirror\.slitaz\.org$" { +$HTTP["host"] =~ "^mirror([0-9]*)\.slitaz\.org$" { server.document-root = "/var/www/slitaz/mirror" server.errorlog = "/var/log/lighttpd/mirror.slitaz.org-error.log" accesslog.filename = "/var/log/lighttpd/mirror.slitaz.org-access.log" @@ -169,3 +169,16 @@ index-file.names += ( "hgwebdir.py" ) } +# scn.slitaz.org (SliTaz Community Network) +# +$HTTP["host"] =~ "scn\.slitaz\.org$" { + server.document-root = "/var/www/scn" + server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log" + accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log" + url.rewrite-final = ( + "^/system/test/(.*)$" => "/index.php?q=system/test/$1", + "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2", + "^/([^.?]*)$" => "/index.php?q=$1", + "^/rss.xml" => "/index.php?q=rss.xml" + ) +}