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

tank: let try our own BTS
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 29 16:15:58 2012 +0200 (2012-03-29)
parents bc87692322ad
children 5e1b4ca65e96
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 # try.slitaz.org (For testing)
90 #
91 $HTTP["host"] =~ "(try\.slitaz\.org$)" {
92 server.document-root = "/home/slitaz/www/bugs/web"
93 server.errorlog = "/var/log/lighttpd/try.slitaz.org-error.log"
94 accesslog.filename = "/var/log/lighttpd/try.slitaz.org-access.log"
95 cgi.assign = (
96 ".cgi" => "/bin/sh"
97 )
98 index-file.names = ( "bugs.cgi" )
99 }
101 # cloud.slitaz.me
102 #
103 $HTTP["host"] =~ "cloud\.slitaz\.me$" {
104 server.document-root = "/home/slitaz/www/cloud"
105 server.errorlog = "/var/log/lighttpd/cloud.slitaz.me-error.log"
106 accesslog.filename = "/var/log/lighttpd/cloud.slitaz.me-access.log"
107 }
109 # ssfs.slitaz.org
110 #
111 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
112 cgi.assign = (
113 ".cgi" => "/bin/sh"
114 )
115 index-file.names = ( "ssfs.cgi" )
116 server.document-root = "/home/slitaz/www/ssfs"
117 auth.backend = "plain"
118 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
119 auth.require = ( "/home/" =>
120 (
121 "method" => "basic",
122 "realm" => "SliTaz Ssfs protected area",
123 "require" => "valid-user"
124 )
125 )
126 }
128 # These hosts are personnal website for me and my family, pankso.
130 # pankso.com
131 #
132 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
133 server.document-root = "/home/pankso/vhosts/pankso"
134 server.errorlog = "/var/log/lighttpd/pankso.error.log"
135 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
136 }
138 # lincolm.ch
139 #
140 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
141 server.document-root = "/home/pankso/vhosts/lincolm"
142 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
143 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
144 }