slitaz-modular view initramfs/etc/lighttpd/vhosts-tank.conf @ rev 171

initramfs: Update local-mirror script and lighttpd config files. Support new /lib/libtaz.sh script.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 24 18:55:39 2012 +0000 (2012-04-24)
parents 828711dd2cc6
children
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 ".py" => "/usr/bin/python",
109 ".sh" => "/bin/sh",
110 ".cgi" => "/bin/sh"
111 )
112 #index-file.names = ( "index.cgi" )
113 }
115 # cloud.slitaz.me
116 #
117 $HTTP["host"] =~ "cloud\.slitaz\.me$" {
118 server.document-root = "/home/slitaz/www/cloud"
119 server.errorlog = "/var/log/lighttpd/cloud.slitaz.me-error.log"
120 accesslog.filename = "/var/log/lighttpd/cloud.slitaz.me-access.log"
121 }
123 # ssfs.slitaz.org
124 #
125 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
126 cgi.assign = (
127 ".cgi" => "/bin/sh"
128 )
129 index-file.names = ( "ssfs.cgi" )
130 server.document-root = "/home/slitaz/www/ssfs"
131 auth.backend = "plain"
132 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
133 auth.require = ( "/home/" =>
134 (
135 "method" => "basic",
136 "realm" => "SliTaz Ssfs protected area",
137 "require" => "valid-user"
138 )
139 )
140 }
142 # These hosts are personnal website for me and my family, pankso.
144 # pankso.com
145 #
146 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
147 server.document-root = "/home/pankso/vhosts/pankso"
148 server.errorlog = "/var/log/lighttpd/pankso.error.log"
149 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
150 }
152 # lincolm.ch
153 #
154 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
155 server.document-root = "/home/pankso/vhosts/lincolm"
156 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
157 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
158 }