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

initramfs: Add awstats files for keeping stats on more sites.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 08 03:57:50 2011 +0000 (2011-09-08)
parents 12a8156049fc
children 0ede00e3c781
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"
29 include "awstats.conf"
30 index-file.names += ( "index.cgi", "index.php", "index.html" )
31 cgi.assign = (
32 ".cgi" => "/bin/sh"
33 )
34 }
36 # pro.slitaz.org
37 #
38 $HTTP["host"] =~ "pro\.slitaz\.org$" {
39 server.document-root = "/home/slitaz/www/pro"
40 server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log"
41 accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log"
42 url.rewrite-final = (
43 "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
44 "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
45 "^/([^.?]*)$" => "/index.php?q=$1",
46 "^/rss.xml" => "/index.php?q=rss.xml"
47 )
48 }
50 # people.slitaz.org
51 #
52 $HTTP["host"] =~ "people\.slitaz\.org$" {
53 userdir.path = "Public"
54 userdir.exclude-user = ("root")
55 server.document-root = "/home/slitaz/www/people"
56 server.errorlog = "/var/log/lighttpd/people.slitaz.org-error.log"
57 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
58 }
60 # boot.slitaz.org
61 #
62 $HTTP["host"] =~ "boot\.slitaz\.org$" {
63 server.document-root = "/home/slitaz/www/boot"
64 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
65 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
66 cgi.assign = (
67 ".cgi" => "/bin/sh"
68 )
69 }
71 # pkgs.slitaz.org
72 #
73 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
74 server.document-root = "/home/slitaz/www/pkgs"
75 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
76 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
77 cgi.assign = (
78 ".cgi" => "/bin/sh"
79 )
80 }
82 # bb.slitaz.org (Build Bot)
83 #
84 $HTTP["host"] =~ "bb\.slitaz\.org$" {
85 server.document-root = "/home/slitaz/www/bb"
86 server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
87 accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
88 }
90 # hg.slitaz.org (Mercurial repos)
91 #
92 $HTTP["host"] =~ "hg\.slitaz\.org" {
93 cgi.assign = (
94 ".cgi" => "/usr/bin/python"
95 )
96 server.document-root = "/home/slitaz/www/hg"
97 server.errorlog = "/var/log/lighttpd/hg.slitaz.org-error.log"
98 accesslog.filename = "/var/log/lighttpd/hg.slitaz.org-access.log"
99 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
100 auth.backend = "plain"
101 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
102 $HTTP["querystring"] =~ "cmd=unbundle" {
103 auth.require = ( "" => (
104 "method" => "basic",
105 "realm" => "SliTaz Mercurial repositories protected area",
106 "require" => "vaild-user"
107 )
108 )
109 }
110 }
112 # repos.slitaz.org (Mercurial repos with auth and write access)
113 #
114 $HTTP["host"] =~ "repos\.slitaz\.org" {
115 cgi.assign = (
116 ".cgi" => "/usr/bin/python"
117 )
118 server.document-root = "/home/slitaz/www/hg"
119 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
120 auth.backend = "plain"
121 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
122 auth.require = ( "/" =>
123 (
124 "method" => "basic",
125 "realm" => "SliTaz Mercurial repositories protected area",
126 "require" => "valid-user"
127 )
128 )
130 }
132 # doc.slitaz.org
133 #
134 $HTTP["host"] =~ "doc\.slitaz\.org" {
135 server.document-root = "/home/slitaz/www/doc"
136 server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log"
137 accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log"
138 index-file.names = ("doku.php")
139 var.dokudir = ""
140 # Rewrites for dokuwiki
141 url.rewrite = (
142 "^" + var.dokudir + "/lib/.*$" => "$0",
143 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
144 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
145 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
146 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
147 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
148 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
149 "^" + var.dokudir + "/doku.php.*" => "$0",
150 "^" + var.dokudir + "/feed.php.*" => "$0",
151 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
152 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
153 )
154 }
156 # bugs.slitaz.org
157 #
158 $HTTP["host"] =~ "bugs\.slitaz\.org$" {
159 #cgi.assign = (
160 # ".cgi" => "/usr/bin/python"
161 #)
162 #server.document-root = "/home/slitaz/www/bugs"
163 #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" )
164 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
165 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
166 #url.rewrite = ( "(.*)" => "/bugs$1" )
167 proxy.server = ( "" => ((
168 "host" => "127.0.0.1",
169 "port" => "8917"
170 ))
171 )
172 }
175 # cloud.slitaz.org
176 #
177 $HTTP["host"] =~ "cloud\.slitaz\.org" {
178 cgi.assign = (
179 ".cgi" => "/bin/sh"
180 )
181 index-file.names = ( "cloud.cgi" )
182 server.document-root = "/home/slitaz/www/cloud"
183 auth.backend = "plain"
184 auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
185 auth.require = ( "/" =>
186 (
187 "method" => "basic",
188 "realm" => "SliTaz Cloud protected area",
189 "require" => "valid-user"
190 )
191 )
192 }
194 # cook.slitaz.org
195 #
196 $HTTP["host"] =~ "cook\.slitaz\.org$" {
197 cgi.assign = (
198 ".cgi" => "/bin/sh"
199 )
200 index-file.names = ( "cooker.cgi" )
201 server.document-root = "/home/slitaz/www/cook"
202 }
204 # ssfs.slitaz.org
205 #
206 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
207 cgi.assign = (
208 ".cgi" => "/bin/sh"
209 )
210 index-file.names = ( "ssfs.cgi" )
211 server.document-root = "/home/slitaz/www/ssfs"
212 auth.backend = "plain"
213 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
214 auth.require = ( "/home/" =>
215 (
216 "method" => "basic",
217 "realm" => "SliTaz Ssfs protected area",
218 "require" => "valid-user"
219 )
220 )
221 }
223 # pizza.slitaz.org
224 #
225 $HTTP["host"] =~ "pizza\.slitaz\.org" {
226 server.document-root = "/home/slitaz/www/pizza"
227 server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
228 accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
229 }
231 # lfs.slitaz.org (Linux From Scratch docs)
232 #
233 $HTTP["host"] =~ "lfs\.slitaz\.org$" {
234 server.document-root = "/home/slitaz/www/lfs"
235 server.errorlog = "/var/log/lighttpd/lfs.slitaz.org-error.log"
236 accesslog.filename = "/var/log/lighttpd/lfs.slitaz.org-access.log"
237 }
239 # absguide.slitaz.org (Advanced Bash-Scripting Guide docs)
240 #
241 $HTTP["host"] =~ "absguide\.slitaz\.org$" {
242 server.document-root = "/home/slitaz/www/absguide"
243 server.errorlog = "/var/log/lighttpd/absguide.slitaz.org-error.log"
244 accesslog.filename = "/var/log/lighttpd/absguide.slitaz.org-access.log"
245 }
247 # hgbook.slitaz.org (Mercurial: The Definitve Guide docs)
248 #
249 $HTTP["host"] =~ "hgbook\.slitaz\.org$" {
250 server.document-root = "/home/slitaz/www/hgbook"
251 server.errorlog = "/var/log/lighttpd/hgbook.slitaz.org-error.log"
252 accesslog.filename = "/var/log/lighttpd/hgbook.slitaz.org-access.log"
253 }
255 # gimp.en.slitaz.org (gimp English docs)
256 #
257 $HTTP["host"] =~ "gimp\.en\.slitaz\.org$" {
258 server.document-root = "/home/slitaz/www/gimp_en"
259 server.errorlog = "/var/log/lighttpd/gimp.en.slitaz.org-error.log"
260 accesslog.filename = "/var/log/lighttpd/gimp.en.slitaz.org-access.log"
261 }
263 # gimp.es.slitaz.org (gimp Spanish docs)
264 #
265 $HTTP["host"] =~ "gimp\.es\.slitaz\.org$" {
266 server.document-root = "/home/slitaz/www/gimp_es"
267 server.errorlog = "/var/log/lighttpd/gimp.es.slitaz.org-error.log"
268 accesslog.filename = "/var/log/lighttpd/gimp.es.slitaz.org-access.log"
269 }
271 # gimp.fr.slitaz.org (gimp French docs)
272 #
273 $HTTP["host"] =~ "gimp\.fr\.slitaz\.org$" {
274 server.document-root = "/home/slitaz/www/gimp_fr"
275 server.errorlog = "/var/log/lighttpd/gimp.fr.slitaz.org-error.log"
276 accesslog.filename = "/var/log/lighttpd/gimp.fr.slitaz.org-access.log"
277 }