slitaz-modular view initramfs/etc/lighttpd/vhosts-local-tank.conf @ rev 123

Updated lighttpd configs.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jul 11 11:27:15 2011 +0000 (2011-07-11)
parents 9ff744183aa1
children 12a8156049fc
line source
1 # /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
2 #
4 # Nice url's for Drupal
5 #
6 #url.rewrite-final = (
7 # "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
8 # "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
9 # "^/([^.?]*)$" => "/index.php?q=$1",
10 # "^/rss.xml" => "/index.php?q=rss.xml"
11 # )
13 # tank.slitaz.org (Server canonical hostname)
14 #
15 $HTTP["host"] =~ "tank\.slitaz\.org$" {
16 server.document-root = "/home/slitaz/www/tank"
17 server.errorlog = "/var/log/lighttpd/tank.slitaz.org-error.log"
18 accesslog.filename = "/var/log/lighttpd/tank.slitaz.org-access.log"
19 include "awstats.conf"
20 index-file.names += ( "index.php" )
21 }
23 # slitaz.org
24 #
25 $HTTP["host"] =~ "(^|www\.)slitaz\.org$" {
26 server.document-root = "/home/slitaz/www/website"
27 server.errorlog = "/var/log/lighttpd/slitaz.org-error.log"
28 accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
30 include "awstats.conf"
31 index-file.names += ( "index.cgi", "index.php", "index.html" )
32 cgi.assign = (
33 ".cgi" => "/bin/sh"
34 )
35 }
37 # pro.slitaz.org
38 #
39 $HTTP["host"] =~ "pro\.slitaz\.org$" {
40 server.document-root = "/home/slitaz/www/pro"
41 server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log"
42 accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log"
43 url.rewrite-final = (
44 "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
45 "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
46 "^/([^.?]*)$" => "/index.php?q=$1",
47 "^/rss.xml" => "/index.php?q=rss.xml"
48 )
49 }
51 # people.slitaz.org
52 #
53 $HTTP["host"] =~ "people\.slitaz\.org$" {
54 userdir.path = "Public"
55 userdir.exclude-user = ("root")
56 server.document-root = "/home/slitaz/www/people"
57 server.errorlog = "/var/log/lighttpd/people.slitaz.org-error.log"
58 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
59 }
61 # boot.slitaz.org
62 #
63 $HTTP["host"] =~ "boot\.slitaz\.org$" {
64 server.document-root = "/home/slitaz/www/boot"
65 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
66 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
67 cgi.assign = (
68 ".cgi" => "/bin/sh"
69 )
70 }
72 # pkgs.slitaz.org
73 #
74 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
75 server.document-root = "/home/slitaz/www/pkgs"
76 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
77 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
78 cgi.assign = (
79 ".cgi" => "/bin/sh"
80 )
81 }
83 # bb.slitaz.org (Build Bot)
84 #
85 $HTTP["host"] =~ "bb\.slitaz\.org$" {
86 server.document-root = "/home/slitaz/www/bb"
87 server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
88 accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
89 }
91 # hg.slitaz.org (Mercurial repos)
92 #
93 $HTTP["host"] =~ "hg\.slitaz\.org" {
94 cgi.assign = (
95 ".cgi" => "/usr/bin/python"
96 )
97 server.document-root = "/home/slitaz/www/hg"
98 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
99 auth.backend = "plain"
100 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
101 $HTTP["querystring"] =~ "cmd=unbundle" {
102 auth.require = ( "" => (
103 "method" => "basic",
104 "realm" => "SliTaz Mercurial repositories protected area",
105 "require" => "vaild-user"
106 )
107 )
108 }
109 }
111 # repos.slitaz.org (Mercurial repos with auth and write access)
112 #
113 $HTTP["host"] =~ "repos\.slitaz\.org" {
114 cgi.assign = (
115 ".cgi" => "/usr/bin/python"
116 )
117 server.document-root = "/home/slitaz/www/hg"
118 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
119 auth.backend = "plain"
120 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
121 auth.require = ( "/" =>
122 (
123 "method" => "basic",
124 "realm" => "SliTaz Mercurial repositories protected area",
125 "require" => "valid-user"
126 )
127 )
129 }
131 # doc.slitaz.org
132 #
133 $HTTP["host"] =~ "doc\.slitaz\.org" {
134 server.document-root = "/home/slitaz/www/doc"
135 index-file.names = ("doku.php")
136 var.dokudir = ""
137 # Rewrites for dokuwiki
138 url.rewrite = (
139 "^" + var.dokudir + "/lib/.*$" => "$0",
140 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
141 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
142 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
143 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
144 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
145 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
146 "^" + var.dokudir + "/doku.php.*" => "$0",
147 "^" + var.dokudir + "/feed.php.*" => "$0",
148 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
149 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
150 )
151 }
153 # bugs.slitaz.org
154 #
155 $HTTP["host"] =~ "bugs\.slitaz\.org$" {
156 #cgi.assign = (
157 # ".cgi" => "/usr/bin/python"
158 #)
159 #server.document-root = "/home/slitaz/www/bugs"
160 #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" )
162 #url.rewrite = ( "(.*)" => "/bugs$1" )
163 proxy.server = ( "" => ((
164 "host" => "127.0.0.1",
165 "port" => "8917"
166 ))
167 )
168 }
171 # cloud.slitaz.org
172 #
173 $HTTP["host"] =~ "cloud\.slitaz\.org" {
174 cgi.assign = (
175 ".cgi" => "/bin/sh"
176 )
177 index-file.names = ( "cloud.cgi" )
178 server.document-root = "/home/slitaz/www/cloud"
179 auth.backend = "plain"
180 auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
181 auth.require = ( "/" =>
182 (
183 "method" => "basic",
184 "realm" => "SliTaz Cloud protected area",
185 "require" => "valid-user"
186 )
187 )
188 }
190 # cook.slitaz.org
191 #
192 $HTTP["host"] =~ "cook\.slitaz\.org$" {
193 cgi.assign = (
194 ".cgi" => "/bin/sh"
195 )
196 index-file.names = ( "cooker.cgi" )
197 server.document-root = "/home/slitaz/www/cook"
198 }
200 # ssfs.slitaz.org
201 #
202 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
203 cgi.assign = (
204 ".cgi" => "/bin/sh"
205 )
206 index-file.names = ( "ssfs.cgi" )
207 server.document-root = "/home/slitaz/www/ssfs"
208 auth.backend = "plain"
209 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
210 auth.require = ( "/home/" =>
211 (
212 "method" => "basic",
213 "realm" => "SliTaz Ssfs protected area",
214 "require" => "valid-user"
215 )
216 )
217 }
219 # pizza.slitaz.org
220 #
221 $HTTP["host"] =~ "pizza\.slitaz\.org" {
222 server.document-root = "/home/slitaz/www/pizza"
223 server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
224 accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
225 }
227 # lfs.slitaz.org (Linux From Scratch docs)
228 #
229 $HTTP["host"] =~ "lfs\.slitaz\.org$" {
230 server.document-root = "/home/slitaz/www/lfs"
231 server.errorlog = "/var/log/lighttpd/lfs.slitaz.org-error.log"
232 accesslog.filename = "/var/log/lighttpd/lfs.slitaz.org-access.log"
233 }