slitaz-modular view initramfs/etc/lighttpd/vhosts-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 9ff744183aa1
children 87aa12b14afa
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 }
69 # pkgs.slitaz.org
70 #
71 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
72 server.document-root = "/home/slitaz/www/pkgs"
73 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
74 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
75 cgi.assign = (
76 ".cgi" => "/bin/sh"
77 )
78 }
80 # bb.slitaz.org (Build Bot)
81 #
82 $HTTP["host"] =~ "bb\.slitaz\.org$" {
83 server.document-root = "/home/slitaz/www/bb"
84 server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
85 accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
86 }
88 # hg.slitaz.org (Mercurial repos)
89 #
90 $HTTP["host"] =~ "hg\.slitaz\.org" {
91 cgi.assign = (
92 ".cgi" => "/usr/bin/python"
93 )
94 server.document-root = "/home/slitaz/www/hg"
95 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
96 auth.backend = "plain"
97 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
98 $HTTP["querystring"] =~ "cmd=unmundle" {
99 auth.require = ( "/" => (
100 "method" => "basic",
101 "realm" => "SliTaz Mercurial repositories protected area",
102 "require" => "valid-user"
103 )
104 )
105 }
106 }
108 # repos.slitaz.org (Mercurial repos with auth and write access)
109 #
110 $HTTP["host"] =~ "repos\.slitaz\.org" {
111 cgi.assign = (
112 ".cgi" => "/usr/bin/python"
113 )
114 server.document-root = "/home/slitaz/www/hg"
115 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
116 auth.backend = "plain"
117 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
118 auth.require = ( "/" =>
119 (
120 "method" => "basic",
121 "realm" => "SliTaz Mercurial repositories protected area",
122 "require" => "valid-user"
123 )
124 )
126 }
128 # doc.slitaz.org
129 #
130 $HTTP["host"] =~ "doc\.slitaz\.org" {
131 server.document-root = "/home/slitaz/www/doc"
132 index-file.names = ("doku.php")
133 var.dokudir = ""
134 # Rewrites for dokuwiki
135 url.rewrite = (
136 "^" + var.dokudir + "/lib/.*$" => "$0",
137 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
138 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
139 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
140 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
141 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
142 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
143 "^" + var.dokudir + "/doku.php.*" => "$0",
144 "^" + var.dokudir + "/feed.php.*" => "$0",
145 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
146 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
147 )
148 }
150 # scn.slitaz.org
151 #
152 $HTTP["host"] =~ "scn\.slitaz\.org$" {
153 server.document-root = "/home/slitaz/www/scn"
154 server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
155 accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
156 url.rewrite-final = (
157 "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
158 "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
159 "^/([^.?]*)$" => "/index.php?q=$1",
160 "^/rss.xml" => "/index.php?q=rss.xml"
161 )
162 }
164 # store.slitaz.org
165 #
166 $HTTP["host"] =~ "store\.slitaz\.org$" {
167 server.document-root = "/home/slitaz/www/store"
168 server.errorlog = "/var/log/lighttpd/store.slitaz.org-error.log"
169 accesslog.filename = "/var/log/lighttpd/store.slitaz.org-access.log"
170 }
172 # groups.slitaz.org
173 #
174 $HTTP["host"] =~ "groups\.slitaz\.org$" {
175 server.document-root = "/home/slitaz/www/groups"
176 server.errorlog = "/var/log/lighttpd/groups.slitaz.org-error.log"
177 accesslog.filename = "/var/log/lighttpd/groups.slitaz.org-access.log"
178 url.rewrite-final = (
179 "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
180 "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
181 "^/([^.?]*)$" => "/index.php?q=$1",
182 "^/rss.xml" => "/index.php?q=rss.xml"
183 )
184 }
186 # bugs.slitaz.org
187 #
188 $HTTP["host"] =~ "bugs\.slitaz\.org$" {
189 #cgi.assign = (
190 # ".cgi" => "/usr/bin/python"
191 #)
192 #server.document-root = "/home/slitaz/www/bugs"
193 #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" )
195 #url.rewrite = ( "(.*)" => "/bugs$1" )
196 proxy.server = ( "" => ((
197 "host" => "127.0.0.1",
198 "port" => "8917"
199 ))
200 )
201 }
203 # cook.slitaz.org
204 #
205 $HTTP["host"] =~ "cook\.slitaz\.org$" {
206 cgi.assign = (
207 ".cgi" => "/bin/sh"
208 )
209 index-file.names = ( "cooker.cgi" )
210 server.document-root = "/home/slitaz/www/cook"
211 }
213 # cloud.slitaz.org
214 #
215 $HTTP["host"] =~ "cloud\.slitaz\.org$" {
216 cgi.assign = (
217 ".cgi" => "/bin/sh"
218 )
219 index-file.names = ( "cloud.cgi" )
220 server.document-root = "/home/slitaz/www/cloud"
221 auth.backend = "plain"
222 auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
223 auth.require = ( "/" =>
224 (
225 "method" => "basic"
226 "realm" => "SliTaz Cloud protected area",
227 "require" => "valid-user"
228 )
229 )
230 }
232 # ssfs.slitaz.org
233 #
234 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
235 cgi.assign = (
236 ".cgi" => "/bin/sh"
237 )
238 index-file.names = ( "ssfs.cgi" )
239 server.document-root = "/home/slitaz/www/ssfs"
240 auth.backend = "plain"
241 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
242 auth.require = ( "/home/" =>
243 (
244 "method" => "basic",
245 "realm" => "SliTaz Ssfs protected area",
246 "require" => "valid-user"
247 )
248 )
249 }
251 # These hosts are personnal website for me and my family, pankso.
254 # libordux
255 #
256 $HTTP["host"] =~ "(^|\.)libordux\.$" {
257 server.document-root = "/home/pankso/vhosts/libordux"
258 server.errorlog = "/var/log/lighttpd/libordux.error.log"
259 accesslog.filename = "/var/log/lighttpd/libordux.access.log"
260 }
262 # lincolm.ch
263 #
264 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
265 server.document-root = "/home/pankso/vhosts/lincolm"
266 server.errorlog = "/var/log/lighttpd/lincolm-error.log"
267 accesslog.filename = "/var/log/lighttpd/lincolm-access.log"
268 }
270 # solufina.ch
271 #
272 $HTTP["host"] =~ "(^|\.)solufina\.ch$" {
273 server.document-root = "/home/pankso/vhosts/solufina"
274 server.errorlog = "/var/log/lighttpd/solufina.log"
275 accesslog.filename = "/var/log/lighttpd/solufina.log"
276 }