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

initramfs: Add support for ssfs.slitaz.org.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 20 15:00:04 2011 +0000 (2011-06-20)
parents b8821f5bebb3
children 828711dd2cc6
line source
1 # /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
2 #
4 # Nice url's for Drupal
5 #
6 #url.rewrite-final = (
7 # "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
8 # "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
9 # "^/([^.?]*)$" => "/index.php?q=$1",
10 # "^/rss.xml" => "/index.php?q=rss.xml"
11 # )
13 # tank.slitaz.org (Server canonical hostname)
14 #
15 $HTTP["host"] =~ "tank\.slitaz\.org$" {
16 server.document-root = "/home/slitaz/www/tank"
17 server.errorlog = "/var/log/lighttpd/tank.slitaz.org-error.log"
18 accesslog.filename = "/var/log/lighttpd/tank.slitaz.org-access.log"
19 include "awstats.conf"
20 index-file.names += ( "index.php" )
21 }
23 # slitaz.org
24 #
25 $HTTP["host"] =~ "(^|www\.)slitaz\.org$" {
26 server.document-root = "/home/slitaz/www/website"
27 server.errorlog = "/var/log/lighttpd/slitaz.org-error.log"
28 accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
30 include "awstats.conf"
31 index-file.names += ( "index.php" )
32 index-file.names += ( "index.html" )
34 url.rewrite-once = (
35 "^/about" => "/fr/about",
36 "^/artwork" => "/fr/artwork",
37 "^/devel" => "/fr/devel",
38 "^/doc" => "/fr/doc",
39 "^/get" => "/fr/get",
40 "^/packages" => "/fr/packages"
41 )
43 }
45 # pro.slitaz.org
46 #
47 $HTTP["host"] =~ "pro\.slitaz\.org$" {
48 server.document-root = "/home/slitaz/www/pro"
49 server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log"
50 accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log"
51 url.rewrite-final = (
52 "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
53 "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
54 "^/([^.?]*)$" => "/index.php?q=$1",
55 "^/rss.xml" => "/index.php?q=rss.xml"
56 )
57 }
59 # people.slitaz.org
60 #
61 $HTTP["host"] =~ "people\.slitaz\.org$" {
62 userdir.path = "Public"
63 userdir.exclude-user = ("root")
64 server.document-root = "/home/slitaz/www/people"
65 server.errorlog = "/var/log/lighttpd/people.slitaz.org-error.log"
66 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
67 }
69 # boot.slitaz.org
70 #
71 $HTTP["host"] =~ "boot\.slitaz\.org$" {
72 server.document-root = "/home/slitaz/www/boot"
73 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
74 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
75 }
77 # pkgs.slitaz.org
78 #
79 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
80 server.document-root = "/home/slitaz/www/pkgs"
81 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
82 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
83 cgi.assign = (
84 ".cgi" => "/bin/sh"
85 )
86 }
88 # bb.slitaz.org (Build Bot)
89 #
90 $HTTP["host"] =~ "bb\.slitaz\.org$" {
91 server.document-root = "/home/slitaz/www/bb"
92 server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
93 accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
94 }
96 # cook.slitaz.org
97 #
98 $HTTP["host"] =~ "cook\.slitaz\.org$" {
99 cgi.assign = (
100 ".cgi" => "/bin/sh"
101 )
102 index-file.names = ( "cooker.cgi" )
103 server.document-root = "/home/slitaz/www/cook"
104 }
106 # hg.slitaz.org (Mercurial repos)
107 #
108 $HTTP["host"] =~ "hg\.slitaz\.org" {
109 cgi.assign = (
110 ".cgi" => "/usr/bin/python"
111 )
112 server.document-root = "/home/slitaz/www/hg"
113 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
114 }
116 # repos.slitaz.org (Mercurial repos with auth and write access)
117 #
118 $HTTP["host"] =~ "repos\.slitaz\.org" {
119 cgi.assign = (
120 ".cgi" => "/usr/bin/python"
121 )
122 server.document-root = "/home/slitaz/www/hg"
123 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
124 auth.backend = "plain"
125 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
126 auth.require = ( "/" =>
127 (
128 "method" => "basic",
129 "realm" => "SliTaz Mercurial repositories protected area",
130 "require" => "valid-user"
131 )
132 )
134 }
136 # doc.slitaz.org
137 #
138 $HTTP["host"] =~ "doc\.slitaz\.org" {
139 server.document-root = "/home/slitaz/www/doc"
140 index-file.names = ("doku.php")
141 var.dokudir = ""
142 # Rewrites for dokuwiki
143 url.rewrite = (
144 "^" + var.dokudir + "/lib/.*$" => "$0",
145 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
146 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
147 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
148 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
149 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
150 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
151 "^" + var.dokudir + "/doku.php.*" => "$0",
152 "^" + var.dokudir + "/feed.php.*" => "$0",
153 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
154 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
155 )
156 }
158 # bugs.slitaz.org
159 #
160 $HTTP["host"] =~ "bugs\.slitaz\.org$" {
161 #cgi.assign = (
162 # ".cgi" => "/usr/bin/python"
163 #)
164 #server.document-root = "/home/slitaz/www/bugs"
165 #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" )
167 #url.rewrite = ( "(.*)" => "/bugs$1" )
168 proxy.server = ( "" => ((
169 "host" => "127.0.0.1",
170 "port" => "8917"
171 ))
172 )
173 }
176 # cloud.slitaz.org
177 #
178 $HTTP["host"] =~ "cloud\.slitaz\.org" {
179 cgi.assign = (
180 ".cgi" => "/bin/sh"
181 )
182 index-file.names = ( "cloud.cgi" )
183 server.document-root = "/home/slitaz/www/cloud"
184 auth.backend = "plain"
185 auth.backend.plain.userfile = "/etc/lighttpd/cloud.users"
186 auth.require = ( "/" =>
187 (
188 "method" => "basic",
189 "realm" => "SliTaz Cloud protected area",
190 "require" => "valid-user"
191 )
192 )
193 }
195 # ssfs.slitaz.org
196 #
197 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
198 cgi.assign = (
199 ".cgi" => "/bin/sh"
200 )
201 index-file.names = ( "ssfs.cgi" )
202 server.document-root = "/home/slitaz/www/ssfs"
203 auth.backend = "plain"
204 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
205 auth.require = ( "/home/" =>
206 (
207 "method" => "basic",
208 "realm" => "SliTaz Ssfs protected area",
209 "require" => "valid-user"
210 )
211 )
212 }
214 # pizza.slitaz.org
215 #
216 $HTTP["host"] =~ "pizza\.slitaz\.org" {
217 server.document-root = "/home/slitaz/www/pizza"
218 server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
219 accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
220 }
222 # lfs.slitaz.org (Linux From Scratch docs)
223 #
224 $HTTP["host"] =~ "lfs\.slitaz\.org$" {
225 server.document-root = "/home/slitaz/www/lfs"
226 server.errorlog = "/var/log/lighttpd/lfs.slitaz.org-error.log"
227 accesslog.filename = "/var/log/lighttpd/lfs.slitaz.org-access.log"
228 }