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

tank: add roadmap.slitaz.org vhost
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 27 19:24:44 2012 +0200 (2012-03-27)
parents 1cc5b20bd68c
children bc87692322ad
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 # cloud.slitaz.me
90 #
91 $HTTP["host"] =~ "cloud\.slitaz\.me$" {
92 server.document-root = "/home/slitaz/www/cloud"
93 server.errorlog = "/var/log/lighttpd/cloud.slitaz.me-error.log"
94 accesslog.filename = "/var/log/lighttpd/cloud.slitaz.me-access.log"
95 }
97 # ssfs.slitaz.org
98 #
99 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
100 cgi.assign = (
101 ".cgi" => "/bin/sh"
102 )
103 index-file.names = ( "ssfs.cgi" )
104 server.document-root = "/home/slitaz/www/ssfs"
105 auth.backend = "plain"
106 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
107 auth.require = ( "/home/" =>
108 (
109 "method" => "basic",
110 "realm" => "SliTaz Ssfs protected area",
111 "require" => "valid-user"
112 )
113 )
114 }
116 # These hosts are personnal website for me and my family, pankso.
118 # pankso.com
119 #
120 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
121 server.document-root = "/home/pankso/vhosts/pankso"
122 server.errorlog = "/var/log/lighttpd/pankso.error.log"
123 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
124 }
126 # lincolm.ch
127 #
128 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
129 server.document-root = "/home/pankso/vhosts/lincolm"
130 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
131 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
132 }