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

Add a bugs vhost to tank for testing and remove from chub
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 05 00:00:46 2012 +0200 (2012-04-05)
parents 828d04f8128f
children 908b53a228bf
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"
18 server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log"
19 accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log"
20 cgi.assign = (
21 ".cgi" => "/bin/sh"
22 )
23 }
25 # boot.slitaz.org
26 #
27 $HTTP["host"] =~ "boot\.slitaz\.org$" {
28 server.document-root = "/home/slitaz/www/boot"
29 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
30 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
31 cgi.assign = (
32 ".cgi" => "/bin/sh"
33 )
34 }
36 # people.slitaz.org
37 #
38 $HTTP["host"] =~ "people\.slitaz\.org$" {
39 userdir.path = "Public"
40 userdir.exclude-user = ("root")
41 server.document-root = "/home/slitaz/www/people"
42 server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log"
43 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
44 }
46 # pkgs.slitaz.org
47 #
48 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
49 server.document-root = "/home/slitaz/www/pkgs"
50 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
51 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
52 cgi.assign = (
53 ".cgi" => "/bin/sh"
54 )
55 }
57 # cook.slitaz.org
58 #
59 $HTTP["host"] =~ "cook\.slitaz\.org$" {
60 server.document-root = "/home/slitaz/www/cook"
61 server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log"
62 accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log"
63 cgi.assign = (
64 ".cgi" => "/bin/sh"
65 )
66 index-file.names = ( "cooker.cgi" )
67 }
69 # slitaz.me
70 #
71 $HTTP["host"] =~ "slitaz\.me$" {
72 server.document-root = "/home/slitaz/www/me"
73 server.errorlog = "/var/log/lighttpd/slitaz.me-error.log"
74 accesslog.filename = "/var/log/lighttpd/slitaz.me-access.log"
75 }
77 # roadmap.slitaz.org
78 #
79 $HTTP["host"] =~ "roadmap\.slitaz\.org$" {
80 server.document-root = "/home/slitaz/www/roadmap"
81 server.errorlog = "/var/log/lighttpd/roadmap.slitaz.org-error.log"
82 accesslog.filename = "/var/log/lighttpd/roadmap.slitaz.org-access.log"
83 cgi.assign = (
84 ".cgi" => "/bin/sh"
85 )
86 index-file.names = ( "roadmap.cgi" )
87 }
89 # bugs.slitaz.org
90 #
91 $HTTP["host"] =~ "^bugs\.slitaz\.org$" {
92 server.document-root = "/home/slitaz/www/bugs"
93 server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log"
94 accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log"
95 index-file.names = ( "bugs.cgi" )
96 cgi.assign = (
97 ".cgi" => "/bin/sh"
98 )
99 }
101 # try.slitaz.org (For testing)
102 #
103 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
104 server.document-root = "/home/slitaz/www/try"
105 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
106 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
107 cgi.assign = (
108 ".cgi" => "/bin/sh"
109 )
110 #index-file.names = ( "index.cgi" )
111 }
113 # cloud.slitaz.me
114 #
115 $HTTP["host"] =~ "cloud\.slitaz\.me$" {
116 server.document-root = "/home/slitaz/www/cloud"
117 server.errorlog = "/var/log/lighttpd/cloud.slitaz.me-error.log"
118 accesslog.filename = "/var/log/lighttpd/cloud.slitaz.me-access.log"
119 }
121 # ssfs.slitaz.org
122 #
123 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
124 cgi.assign = (
125 ".cgi" => "/bin/sh"
126 )
127 index-file.names = ( "ssfs.cgi" )
128 server.document-root = "/home/slitaz/www/ssfs"
129 auth.backend = "plain"
130 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
131 auth.require = ( "/home/" =>
132 (
133 "method" => "basic",
134 "realm" => "SliTaz Ssfs protected area",
135 "require" => "valid-user"
136 )
137 )
138 }
140 # These hosts are personnal website for me and my family, pankso.
142 # pankso.com
143 #
144 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
145 server.document-root = "/home/pankso/vhosts/pankso"
146 server.errorlog = "/var/log/lighttpd/pankso.error.log"
147 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
148 }
150 # lincolm.ch
151 #
152 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
153 server.document-root = "/home/pankso/vhosts/lincolm"
154 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
155 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
156 }