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

tank: typo in last commit (again)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 10 08:19:29 2014 +0100 (2014-01-10)
parents ed9e0a7db12b
children 8ae65a4e430a
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 }
14 # slitaz.pro
15 #
16 $HTTP["host"] =~ "(slitaz\.pro$|pro\.slitaz\.org$)" {
17 server.document-root = "/home/slitaz/www/pro/web"
18 server.errorlog = "/var/log/lighttpd/slitaz.pro-error.log"
19 accesslog.filename = "/var/log/lighttpd/slitaz.pro-access.log"
20 cgi.assign = (
21 ".py" => "/usr/bin/python",
22 ".cgi" => "/bin/sh"
23 )
24 }
26 # webmail.slitaz.pro
27 #
28 $HTTP["host"] =~ "(webmail\.slitaz\.pro$)" {
29 server.document-root = "/home/slitaz/www/pro/webmail"
30 server.errorlog = "/var/log/lighttpd/slitaz.pro-error.log"
31 accesslog.filename = "/var/log/lighttpd/slitaz.pro-access.log"
32 }
34 # boot.slitaz.org
35 #
36 $HTTP["host"] =~ "boot\.slitaz\.org$" {
37 server.document-root = "/home/slitaz/www/boot"
38 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
39 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
40 cgi.assign = (
41 ".cgi" => "/bin/sh"
42 )
43 }
45 # people.slitaz.org
46 #
47 $HTTP["host"] =~ "people\.slitaz\.org$" {
48 userdir.path = "Public"
49 userdir.exclude-user = ("root")
50 server.document-root = "/home/slitaz/www/people"
51 server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log"
52 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
53 }
55 # pkgs.slitaz.org
56 #
57 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
58 server.document-root = "/home/slitaz/www/pkgs"
59 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
60 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
61 cgi.assign = (
62 ".cgi" => "/bin/sh"
63 )
64 }
66 # cook.slitaz.org
67 #
68 $HTTP["host"] =~ "cook\.slitaz\.org$" {
69 server.document-root = "/home/slitaz/www/cook"
70 server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log"
71 accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log"
72 cgi.assign = (
73 ".cgi" => "/bin/sh"
74 )
75 index-file.names = ( "cooker.cgi", "index.cgi" )
76 }
78 # slitaz.me
79 #
80 $HTTP["host"] =~ "slitaz\.me$" {
81 server.document-root = "/home/slitaz/www/me"
82 server.errorlog = "/var/log/lighttpd/slitaz.me-error.log"
83 accesslog.filename = "/var/log/lighttpd/slitaz.me-access.log"
84 }
86 # roadmap.slitaz.org
87 #
88 $HTTP["host"] =~ "roadmap\.slitaz\.org$" {
89 server.document-root = "/home/slitaz/www/roadmap"
90 server.errorlog = "/var/log/lighttpd/roadmap.slitaz.org-error.log"
91 accesslog.filename = "/var/log/lighttpd/roadmap.slitaz.org-access.log"
92 cgi.assign = (
93 ".cgi" => "/bin/sh"
94 )
95 index-file.names = ( "roadmap.cgi" )
96 }
98 # bugs.slitaz.org
99 #
100 $HTTP["host"] =~ "^bugs\.slitaz\.org$" {
101 server.document-root = "/home/slitaz/www/bugs"
102 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
103 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
104 index-file.names = ( "bugs.cgi" )
105 cgi.assign = (
106 ".cgi" => "/bin/sh"
107 )
108 }
110 # try.slitaz.org (For testing)
111 #
112 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
113 server.document-root = "/home/slitaz/www/try"
114 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
115 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
116 cgi.assign = (
117 ".py" => "/usr/bin/python",
118 ".sh" => "/bin/sh",
119 ".cgi" => "/bin/sh"
120 )
121 #index-file.names = ( "index.cgi" )
122 }
124 # scn.slitaz.org
125 #
126 $HTTP["host"] =~ "^scn\.slitaz\.org$" {
127 server.document-root = "/home/slitaz/www/scn"
128 server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
129 accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
130 index-file.names = ( "index.cgi" )
131 cgi.assign = (
132 ".cgi" => "/bin/sh"
133 )
134 }
136 # codex.slitaz.org
137 #
138 $HTTP["host"] =~ "^codex\.slitaz\.org$" {
139 server.document-root = "/home/slitaz/www/codex"
140 server.errorlog = "/var/log/lighttpd/codex.slitaz.org-error.log"
141 accesslog.filename = "/var/log/lighttpd/codex.slitaz.org-access.log"
142 index-file.names = ( "index.cgi" )
143 cgi.assign = (
144 ".cgi" => "/bin/sh"
145 )
146 }
148 # irc.slitaz.org
149 #
150 $HTTP["host"] =~ "^irc\.slitaz\.org$" {
151 server.document-root = "/home/slitaz/www/irc"
152 server.errorlog = "/var/log/lighttpd/irc.slitaz.org-error.log"
153 accesslog.filename = "/var/log/lighttpd/irc.slitaz.org-access.log"
154 index-file.names = ( "index.cgi" )
155 cgi.assign = (
156 ".cgi" => "/bin/sh"
157 )
158 }
160 # ssfs.slitaz.org
161 #
162 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
163 cgi.assign = (
164 ".cgi" => "/bin/sh"
165 )
166 index-file.names = ( "ssfs.cgi" )
167 server.document-root = "/home/slitaz/www/ssfs"
168 auth.backend = "plain"
169 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
170 auth.require = ( "/home/" =>
171 (
172 "method" => "basic",
173 "realm" => "SliTaz Ssfs protected area",
174 "require" => "valid-user"
175 )
176 )
177 }