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

initramfs: Update initramfs.list. Add changes need for init script to work.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Jul 19 11:49:58 2012 +0000 (2012-07-19)
parents 87aa12b14afa
children
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"] =~ "(slitaz\.pro$|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 cgi.assign = (
43 ".cgi" => "/bin/sh"
44 )
45 }
47 # people.slitaz.org
48 #
49 $HTTP["host"] =~ "people\.slitaz\.org$" {
50 userdir.path = "Public"
51 userdir.exclude-user = ("root")
52 server.document-root = "/home/slitaz/www/people"
53 server.errorlog = "/var/log/lighttpd/people.slitaz.org-error.log"
54 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
55 }
57 # boot.slitaz.org
58 #
59 $HTTP["host"] =~ "boot\.slitaz\.org$" {
60 server.document-root = "/home/slitaz/www/boot"
61 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
62 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
63 cgi.assign = (
64 ".cgi" => "/bin/sh"
65 )
66 }
68 # pkgs.slitaz.org
69 #
70 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
71 server.document-root = "/home/slitaz/www/pkgs"
72 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
73 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
74 cgi.assign = (
75 ".sh" => "/bin/sh"
76 )
77 index-file.names += ( "search.sh" )
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 server.errorlog = "/var/log/lighttpd/hg.slitaz.org-error.log"
96 accesslog.filename = "/var/log/lighttpd/hg.slitaz.org-access.log"
97 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
98 auth.backend = "plain"
99 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
100 $HTTP["querystring"] =~ "cmd=unbundle" {
101 auth.require = ( "" => (
102 "method" => "basic",
103 "realm" => "SliTaz Mercurial repositories protected area",
104 "require" => "vaild-user"
105 )
106 )
107 }
108 }
110 # repos.slitaz.org (Mercurial repos with auth and write access)
111 #
112 $HTTP["host"] =~ "repos\.slitaz\.org" {
113 cgi.assign = (
114 ".cgi" => "/usr/bin/python"
115 )
116 server.document-root = "/home/slitaz/www/hg"
117 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
118 auth.backend = "plain"
119 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
120 auth.require = ( "/" =>
121 (
122 "method" => "basic",
123 "realm" => "SliTaz Mercurial repositories protected area",
124 "require" => "valid-user"
125 )
126 )
128 }
130 # doc.slitaz.org
131 #
132 $HTTP["host"] =~ "doc\.slitaz\.org" {
133 server.document-root = "/home/slitaz/www/doc"
134 server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log"
135 accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log"
136 index-file.names = ("doku.php")
137 var.dokudir = ""
138 # Rewrites for dokuwiki
139 url.rewrite = (
140 "^" + var.dokudir + "/lib/.*$" => "$0",
141 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
142 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
143 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
144 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
145 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
146 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
147 "^" + var.dokudir + "/doku.php.*" => "$0",
148 "^" + var.dokudir + "/feed.php.*" => "$0",
149 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
150 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
151 )
152 }
154 # roadmap.slitaz.org
155 #
156 $HTTP["host"] =~ "roadmap\.slitaz\.org$" {
157 server.document-root = "/home/slitaz/www/roadmap"
158 server.errorlog = "/var/log/lighttpd/roadmap.slitaz.org-error.log"
159 accesslog.filename = "/var/log/lighttpd/roadmap.slitaz.org-access.log"
160 cgi.assign = (
161 ".cgi" => "/bin/sh"
162 )
163 index-file.names = ( "roadmap.cgi" )
164 }
166 # bugs.slitaz.org
167 #
168 $HTTP["host"] =~ "^bugs\.slitaz\.org$" {
169 server.document-root = "/home/slitaz/www/bugs"
170 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
171 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
172 index-file.names = ( "bugs.cgi" )
173 cgi.assign = (
174 ".cgi" => "/bin/sh"
175 )
176 }
178 # try.slitaz.org (For testing)
179 #
180 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
181 server.document-root = "/home/slitaz/www/try"
182 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
183 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
184 cgi.assign = (
185 ".cgi" => "/bin/sh"
186 )
187 #index-file.names = ( "index.cgi" )
188 }
190 # cloud.slitaz.org
191 #
192 $HTTP["host"] =~ "cloud\.slitaz\.org" {
193 cgi.assign = (
194 ".cgi" => "/bin/sh"
195 )
196 index-file.names = ( "cloud.cgi" )
197 server.document-root = "/home/slitaz/www/cloud"
198 auth.backend = "plain"
199 auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
200 auth.require = ( "/" =>
201 (
202 "method" => "basic",
203 "realm" => "SliTaz Cloud protected area",
204 "require" => "valid-user"
205 )
206 )
207 }
209 # cook.slitaz.org
210 #
211 $HTTP["host"] =~ "cook\.slitaz\.org$" {
212 cgi.assign = (
213 ".cgi" => "/bin/sh"
214 )
215 index-file.names = ( "cooker.cgi" )
216 server.document-root = "/home/slitaz/www/cook"
217 }
219 # ssfs.slitaz.org
220 #
221 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
222 cgi.assign = (
223 ".cgi" => "/bin/sh"
224 )
225 index-file.names = ( "ssfs.cgi" )
226 server.document-root = "/home/slitaz/www/ssfs"
227 auth.backend = "plain"
228 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
229 auth.require = ( "/home/" =>
230 (
231 "method" => "basic",
232 "realm" => "SliTaz Ssfs protected area",
233 "require" => "valid-user"
234 )
235 )
236 }
238 # pizza.slitaz.org
239 #
240 $HTTP["host"] =~ "pizza\.slitaz\.org" {
241 server.document-root = "/home/slitaz/www/pizza"
242 server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
243 accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
244 }
246 # usbkey.slitaz.org
247 #
248 $HTTP["host"] =~ "usbkey\.slitaz\.org" {
249 server.document-root = "/home/slitaz/www/usbkey"
250 server.errorlog = "/var/log/lighttpd/usbkey.slitaz.org-error.log"
251 accesslog.filename = "/var/log/lighttpd/usbkey.slitaz.org-access.log"
252 }
254 # piratebox.lan
255 #
256 $HTTP["host"] =~ "piratebox\.lan" {
257 server.document-root = "/home/slitaz/www/piratebox"
258 server.errorlog = "/var/log/lighttpd/piratebox.lan-error.log"
259 accesslog.filename = "/var/log/lighttpd/piratebox.lan-access.log"
260 static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".py" )
261 $HTTP["url"] =~ "/cgi-bin/" {
262 cgi.assign = (
263 ".cgi" => "/usr/bin/perl",
264 ".py" => "/usr/bin/python"
265 )
266 }