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

tank: add personnal vhost
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jul 31 12:27:03 2012 +0200 (2012-07-31)
parents 98f989903f08
children d4aac19525ea
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 # pro.slitaz.org
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 # cloud.slitaz.me
125 #
126 $HTTP["host"] =~ "cloud\.slitaz\.me$" {
127 server.document-root = "/home/slitaz/www/cloud"
128 server.errorlog = "/var/log/lighttpd/cloud.slitaz.me-error.log"
129 accesslog.filename = "/var/log/lighttpd/cloud.slitaz.me-access.log"
130 }
132 # ssfs.slitaz.org
133 #
134 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
135 cgi.assign = (
136 ".cgi" => "/bin/sh"
137 )
138 index-file.names = ( "ssfs.cgi" )
139 server.document-root = "/home/slitaz/www/ssfs"
140 auth.backend = "plain"
141 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
142 auth.require = ( "/home/" =>
143 (
144 "method" => "basic",
145 "realm" => "SliTaz Ssfs protected area",
146 "require" => "valid-user"
147 )
148 )
149 }
151 # These hosts are personnal website for me and my family, pankso.
153 # pankso.com
154 #
155 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
156 server.document-root = "/home/pankso/vhosts/pankso"
157 server.errorlog = "/var/log/lighttpd/pankso.error.log"
158 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
159 }
161 # foretgeorgy.[ch|org]
162 #
163 $HTTP["host"] =~ "(^|\.)foretgeorgy\.^$" {
164 server.document-root = "/home/pankso/vhosts/foretgeorgy"
165 server.errorlog = "/var/log/lighttpd/foretgeorgy.error.log"
166 accesslog.filename = "/var/log/lighttpd/foretgeorgy.access.log"
167 }
169 # lincolm.ch
170 #
171 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
172 server.document-root = "/home/pankso/vhosts/lincolm"
173 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
174 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
175 }