slitaz-forge view tank/files/etc/lighttpd/vhosts.conf @ rev 691

Tiny edit
author Paul Issott <paul@slitaz.org>
date Mon Apr 17 18:21:41 2017 +0100 (2017-04-17)
parents 95ed22875a04
children
line source
1 # /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
2 #
4 # tank.slitaz.org (Server canonical hostname)
5 #
6 $HTTP["host"] =~ "tank\.slitaz\.org$" {
7 server.document-root = "/home/slitaz/www/tank"
8 server.errorlog = "/var/log/lighttpd/tank.slitaz.org-error.log"
9 accesslog.filename = "/var/log/lighttpd/tank.slitaz.org-access.log"
10 include "awstats.conf"
11 index-file.names += ( "index.php" )
12 proxy.server = (
13 "/console" => (( "host" => "127.0.0.1", "port" => 4200 ))
14 )
15 auth.backend = "htpasswd"
16 auth.backend.htpasswd.userfile = "/home/slitaz/www/ns/httpd.users"
17 auth.require = ( "/console" =>
18 (
19 "method" => "basic",
20 "realm" => "Use your mercurial login to use the console service",
21 "require" => "valid-user"
22 )
23 )
24 }
26 # slitaz.pro
27 #
28 $HTTP["host"] =~ "(slitaz\.pro$|pro\.slitaz\.org$)" {
29 server.document-root = "/home/slitaz/www/pro/web"
30 server.errorlog = "/var/log/lighttpd/slitaz.pro-error.log"
31 accesslog.filename = "/var/log/lighttpd/slitaz.pro-access.log"
32 cgi.assign = (
33 ".py" => "/usr/bin/python",
34 ".cgi" => "/bin/sh"
35 )
36 }
38 # boot.slitaz.org
39 #
40 $HTTP["host"] =~ "boot\.slitaz\.org$" {
41 server.document-root = "/home/slitaz/www/boot"
42 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
43 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
44 cgi.assign = (
45 ".cgi" => "/bin/sh"
46 )
47 }
49 # people.slitaz.org
50 #
51 $HTTP["host"] =~ "people\.slitaz\.org$" {
52 userdir.path = "Public"
53 userdir.exclude-user = ("root")
54 server.document-root = "/home/slitaz/www/people"
55 server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log"
56 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
57 }
59 # cook.slitaz.org
60 #
61 $HTTP["host"] =~ "cook\.slitaz\.org$" {
62 server.document-root = "/home/slitaz/www/cook"
63 server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log"
64 accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log"
65 cgi.assign = (
66 ".cgi" => "/bin/sh"
67 )
68 index-file.names = ( "cooker.cgi", "index.cgi" )
69 }
71 # slitaz.me
72 #
73 $HTTP["host"] =~ "(slitaz\.me$|me\.slitaz\.org$|mypizza\.slitaz\.org$)" {
74 server.document-root = "/home/slitaz/www/me"
75 server.errorlog = "/var/log/lighttpd/slitaz.me-error.log"
76 accesslog.filename = "/var/log/lighttpd/slitaz.me-access.log"
77 }
79 # roadmap.slitaz.org
80 #
81 $HTTP["host"] =~ "roadmap\.slitaz\.org$" {
82 server.document-root = "/home/slitaz/www/roadmap"
83 server.errorlog = "/var/log/lighttpd/roadmap.slitaz.org-error.log"
84 accesslog.filename = "/var/log/lighttpd/roadmap.slitaz.org-access.log"
85 cgi.assign = (
86 ".cgi" => "/bin/sh"
87 )
88 index-file.names = ( "roadmap.cgi" )
89 }
91 # bugs.slitaz.org
92 #
93 $HTTP["host"] =~ "^bugs\.slitaz\.org$" {
94 server.document-root = "/home/slitaz/www/bugs"
95 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
96 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
97 index-file.names = ( "bugs.cgi" )
98 cgi.assign = (
99 ".cgi" => "/bin/sh"
100 )
101 }
103 # try.slitaz.org (For testing)
104 #
105 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
106 server.document-root = "/home/slitaz/www/try"
107 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
108 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
109 cgi.assign = (
110 ".py" => "/usr/bin/python",
111 ".sh" => "/bin/sh",
112 ".cgi" => "/bin/sh"
113 )
114 #index-file.names = ( "index.cgi" )
115 }
117 # scn.slitaz.org
118 #
119 $HTTP["host"] =~ "scn\.slitaz\.org$" {
120 server.document-root = "/home/slitaz/www/scn"
121 server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
122 accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
123 index-file.names = ( "index.cgi" )
124 cgi.assign = (
125 ".cgi" => "/bin/sh"
126 )
127 }
129 # arm.slitaz.org
130 #
131 $HTTP["host"] =~ "arm\.slitaz\.org$" {
132 server.document-root = "/home/slitaz/www/arm"
133 server.errorlog = "/var/log/lighttpd/arm.slitaz.org-error.log"
134 accesslog.filename = "/var/log/lighttpd/arm.slitaz.org-access.log"
135 #index-file.names = ( "index.cgi" )
136 cgi.assign = (
137 ".cgi" => "/bin/sh"
138 )
139 }
141 # irc.slitaz.org
142 #
143 $HTTP["host"] =~ "irc\.slitaz\.org$" {
144 server.document-root = "/home/slitaz/www/irc"
145 server.errorlog = "/var/log/lighttpd/irc.slitaz.org-error.log"
146 accesslog.filename = "/var/log/lighttpd/irc.slitaz.org-access.log"
147 index-file.names = ( "index.cgi" )
148 cgi.assign = (
149 ".cgi" => "/bin/sh"
150 )
151 }
153 # tinycm.slitaz.org - TinyCM official website
154 #
155 $HTTP["host"] =~ "tinycm\.slitaz\.org$" {
156 server.document-root = "/home/slitaz/www/tinycm"
157 server.errorlog = "/var/log/lighttpd/tinycm.slitaz.org-error.log"
158 accesslog.filename = "/var/log/lighttpd/tinycm.slitaz.org-access.log"
159 index-file.names = ( "index.cgi" )
160 cgi.assign = (
161 ".cgi" => "/bin/sh"
162 )
163 }
165 # ssfs.slitaz.org
166 #
167 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
168 cgi.assign = (
169 ".cgi" => "/bin/sh"
170 )
171 index-file.names = ( "ssfs.cgi" )
172 server.document-root = "/home/slitaz/www/ssfs"
173 auth.backend = "plain"
174 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
175 auth.require = ( "/home/" =>
176 (
177 "method" => "basic",
178 "realm" => "SliTaz Ssfs protected area",
179 "require" => "valid-user"
180 )
181 )
182 }
184 # piclass.org - PiClass project website
185 #
186 $HTTP["host"] =~ "piclass\.org$" {
187 server.document-root = "/home/piclass/website"
188 server.errorlog = "/var/log/lighttpd/piclass.org-error.log"
189 accesslog.filename = "/var/log/lighttpd/piclass.org-access.log"
190 index-file.names = ( "index.cgi", "index.en.html", "index.fr.html" )
191 cgi.assign = (
192 ".cgi" => "/bin/sh"
193 )
194 }
196 # mirror.slitaz.org (main 46.105.127.17 ks385316.kimsufi.com)
197 #
198 $HTTP["host"] =~ "mirror.*\.slitaz\.org$" {
199 url.redirect = (
200 "^/packages/cooking/(.*)" => "http://mirror1.slitaz.org/packages/cooking/$1",
201 "^/iso/rolling/(.*)" => "http://mirror1.slitaz.org/iso/rolling/$1",
202 "^/(.*)" => "http://mirror.switch.ch/ftp/mirror/slitaz/$1"
203 )
204 server.document-root = "/home/slitaz/www/boot"
205 }
207 # ns.slitaz.org
208 #
209 $HTTP["host"] =~ "ns\.slitaz\.org$" {
210 cgi.assign = (
211 ".cgi" => "/bin/sh"
212 )
213 index-file.names = ( "index.cgi" )
214 server.document-root = "/home/slitaz/www/ns"
215 server.errorlog = "/var/log/lighttpd/ns.slitaz.org-error.log"
216 accesslog.filename = "/var/log/lighttpd/ns.slitaz.org-access.log"
217 auth.backend = "htpasswd"
218 auth.backend.htpasswd.userfile = "/home/slitaz/www/ns/httpd.users"
219 auth.require = ( "" =>
220 (
221 "method" => "basic",
222 "realm" => "Use your mercurial login to use the by.slitaz.org dynamic name server",
223 "require" => "valid-user"
224 )
225 )
226 }
228 # seb.slitaz.org
229 #
230 $HTTP["host"] =~ "seb\.slitaz\.org$" {
231 server.document-root = "/home/slitaz/www/seb"
232 server.errorlog = "/var/log/lighttpd/seb.slitaz.org-error.log"
233 accesslog.filename = "/var/log/lighttpd/seb.slitaz.org-access.log"
234 index-file.names = ( "index.cgi" )
235 cgi.assign = (
236 ".cgi" => "/bin/sh"
237 )
238 }
240 #
241 #
242 # Personal vhosts for contributors (very small sys usage and traffic)
243 #
244 #
246 # pankso: cloud.qiluna.com - Yin-Yoga and Meditation MP3 + PDF
247 $HTTP["host"] =~ "cloud\.qiluna\.com$" {
248 server.document-root = "/home/pankso/QiLuna/cloud"
249 server.errorlog = "/var/log/lighttpd/qiluna.com-error.log"
250 accesslog.filename = "/var/log/lighttpd/qiluna.com-access.log"
251 }