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

server consoles, new deb package for rpi
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 27 12:48:49 2016 +0200 (2016-03-27)
parents 6054f60da834
children 95ed22875a04
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 # webmail.slitaz.pro
39 #
40 $HTTP["host"] =~ "(webmail\.slitaz\.pro$)" {
41 server.document-root = "/home/slitaz/www/pro/webmail"
42 server.errorlog = "/var/log/lighttpd/slitaz.pro-error.log"
43 accesslog.filename = "/var/log/lighttpd/slitaz.pro-access.log"
44 }
46 # boot.slitaz.org
47 #
48 $HTTP["host"] =~ "boot\.slitaz\.org$" {
49 server.document-root = "/home/slitaz/www/boot"
50 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
51 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
52 cgi.assign = (
53 ".cgi" => "/bin/sh"
54 )
55 }
57 # people.slitaz.org
58 #
59 $HTTP["host"] =~ "people\.slitaz\.org$" {
60 userdir.path = "Public"
61 userdir.exclude-user = ("root")
62 server.document-root = "/home/slitaz/www/people"
63 server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log"
64 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
65 }
67 # cook.slitaz.org
68 #
69 $HTTP["host"] =~ "cook\.slitaz\.org$" {
70 server.document-root = "/home/slitaz/www/cook"
71 server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log"
72 accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log"
73 cgi.assign = (
74 ".cgi" => "/bin/sh"
75 )
76 index-file.names = ( "cooker.cgi", "index.cgi" )
77 }
79 # slitaz.me
80 #
81 $HTTP["host"] =~ "(slitaz\.me$|me\.slitaz\.org$|mypizza\.slitaz\.org$)" {
82 server.document-root = "/home/slitaz/www/me"
83 server.errorlog = "/var/log/lighttpd/slitaz.me-error.log"
84 accesslog.filename = "/var/log/lighttpd/slitaz.me-access.log"
85 }
87 # roadmap.slitaz.org
88 #
89 $HTTP["host"] =~ "roadmap\.slitaz\.org$" {
90 server.document-root = "/home/slitaz/www/roadmap"
91 server.errorlog = "/var/log/lighttpd/roadmap.slitaz.org-error.log"
92 accesslog.filename = "/var/log/lighttpd/roadmap.slitaz.org-access.log"
93 cgi.assign = (
94 ".cgi" => "/bin/sh"
95 )
96 index-file.names = ( "roadmap.cgi" )
97 }
99 # bugs.slitaz.org
100 #
101 $HTTP["host"] =~ "^bugs\.slitaz\.org$" {
102 server.document-root = "/home/slitaz/www/bugs"
103 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
104 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
105 index-file.names = ( "bugs.cgi" )
106 cgi.assign = (
107 ".cgi" => "/bin/sh"
108 )
109 }
111 # try.slitaz.org (For testing)
112 #
113 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
114 server.document-root = "/home/slitaz/www/try"
115 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
116 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
117 cgi.assign = (
118 ".py" => "/usr/bin/python",
119 ".sh" => "/bin/sh",
120 ".cgi" => "/bin/sh"
121 )
122 #index-file.names = ( "index.cgi" )
123 }
125 # scn.slitaz.org
126 #
127 $HTTP["host"] =~ "scn\.slitaz\.org$" {
128 server.document-root = "/home/slitaz/www/scn"
129 server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
130 accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
131 index-file.names = ( "index.cgi" )
132 cgi.assign = (
133 ".cgi" => "/bin/sh"
134 )
135 }
137 # arm.slitaz.org
138 #
139 $HTTP["host"] =~ "arm\.slitaz\.org$" {
140 server.document-root = "/home/slitaz/www/arm"
141 server.errorlog = "/var/log/lighttpd/arm.slitaz.org-error.log"
142 accesslog.filename = "/var/log/lighttpd/arm.slitaz.org-access.log"
143 #index-file.names = ( "index.cgi" )
144 cgi.assign = (
145 ".cgi" => "/bin/sh"
146 )
147 }
149 # irc.slitaz.org
150 #
151 $HTTP["host"] =~ "irc\.slitaz\.org$" {
152 server.document-root = "/home/slitaz/www/irc"
153 server.errorlog = "/var/log/lighttpd/irc.slitaz.org-error.log"
154 accesslog.filename = "/var/log/lighttpd/irc.slitaz.org-access.log"
155 index-file.names = ( "index.cgi" )
156 cgi.assign = (
157 ".cgi" => "/bin/sh"
158 )
159 }
161 # tinycm.slitaz.org - TinyCM official website
162 #
163 $HTTP["host"] =~ "tinycm\.slitaz\.org$" {
164 server.document-root = "/home/slitaz/www/tinycm"
165 server.errorlog = "/var/log/lighttpd/tinycm.slitaz.org-error.log"
166 accesslog.filename = "/var/log/lighttpd/tinycm.slitaz.org-access.log"
167 index-file.names = ( "index.cgi" )
168 cgi.assign = (
169 ".cgi" => "/bin/sh"
170 )
171 }
173 # ssfs.slitaz.org
174 #
175 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
176 cgi.assign = (
177 ".cgi" => "/bin/sh"
178 )
179 index-file.names = ( "ssfs.cgi" )
180 server.document-root = "/home/slitaz/www/ssfs"
181 auth.backend = "plain"
182 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
183 auth.require = ( "/home/" =>
184 (
185 "method" => "basic",
186 "realm" => "SliTaz Ssfs protected area",
187 "require" => "valid-user"
188 )
189 )
190 }
192 # piclass.org - PiClass project website
193 #
194 $HTTP["host"] =~ "piclass\.org$" {
195 server.document-root = "/home/piclass/website"
196 server.errorlog = "/var/log/lighttpd/piclass.org-error.log"
197 accesslog.filename = "/var/log/lighttpd/piclass.org-access.log"
198 index-file.names = ( "index.cgi", "index.en.html", "index.fr.html" )
199 cgi.assign = (
200 ".cgi" => "/bin/sh"
201 )
202 }
204 # mirror.slitaz.org (main 46.105.127.17 ks385316.kimsufi.com)
205 #
206 $HTTP["host"] =~ "mirror.*\.slitaz\.org$" {
207 url.redirect = (
208 "^/packages/cooking/(.*)" => "http://mirror1.slitaz.org/packages/cooking/$1",
209 "^/iso/rolling/(.*)" => "http://mirror1.slitaz.org/iso/rolling/$1",
210 "^/(.*)" => "http://mirror.switch.ch/ftp/mirror/slitaz/$1"
211 )
212 server.document-root = "/home/slitaz/www/boot"
213 }
215 # ns.slitaz.org
216 #
217 $HTTP["host"] =~ "ns\.slitaz\.org$" {
218 cgi.assign = (
219 ".cgi" => "/bin/sh"
220 )
221 index-file.names = ( "index.cgi" )
222 server.document-root = "/home/slitaz/www/ns"
223 server.errorlog = "/var/log/lighttpd/ns.slitaz.org-error.log"
224 accesslog.filename = "/var/log/lighttpd/ns.slitaz.org-access.log"
225 auth.backend = "htpasswd"
226 auth.backend.htpasswd.userfile = "/home/slitaz/www/ns/httpd.users"
227 auth.require = ( "" =>
228 (
229 "method" => "basic",
230 "realm" => "Use your mercurial login to use the by.slitaz.org dynamic name server",
231 "require" => "valid-user"
232 )
233 )
234 }