slitaz-forge view chub/files/etc/lighttpd/vhosts.conf @ rev 186

Update tank util and add vhosts.conf
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 20 22:12:29 2012 +0100 (2012-03-20)
parents 03ca13be914f
children f40fac82e0f2
line source
1 # /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
2 #
4 # chub.slitaz.org
5 #
6 $HTTP["host"] =~ "^chub\.slitaz\.org$" {
7 server.document-root = "/home/slitaz/www/chub"
8 server.errorlog = "/var/log/lighttpd/chub.slitaz.org-error.log"
9 accesslog.filename = "/var/log/lighttpd/chub.slitaz.org-access.log"
10 cgi.assign = (
11 ".cgi" => "/bin/sh"
12 )
13 }
15 # pizza.slitaz.me
16 #
17 $HTTP["host"] =~ "^pizza\.slitaz\.me$" {
18 server.document-root = "/home/slitaz/pizza/web"
19 server.errorlog = "/var/log/lighttpd/pizza.slitaz.me-error.log"
20 accesslog.filename = "/var/log/lighttpd/pizza.slitaz.me-access.log"
21 index-file.names = ( "pizza.cgi" )
22 cgi.assign = (
23 ".cgi" => "/bin/sh",
24 ".py" => "/usr/bin/python"
25 )
26 }
28 # doc.slitaz.org
29 #
30 $HTTP["host"] =~ "doc\.slitaz\.org" {
31 server.document-root = "/home/slitaz/www/doc"
32 index-file.names = ("doku.php")
33 var.dokudir = ""
34 # Rewrites for dokuwiki
35 url.rewrite = (
36 "^" + var.dokudir + "/lib/.*$" => "$0",
37 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
38 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
39 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
40 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
41 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
42 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
43 "^" + var.dokudir + "/doku.php.*" => "$0",
44 "^" + var.dokudir + "/feed.php.*" => "$0",
45 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
46 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
47 )
48 }