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

Updated mkiso.sh script and local-mirror script. Removed variables in lighttpd configs files. Fixed seding local-mirror.conf file in mkiso.sh. Made two lighttpd configs. One for local tank and one for local mirror. Added support for tank-only or mirror-only option into local-mirror.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Mar 12 00:13:08 2011 +0000 (2011-03-12)
parents
children ee5105a66d4a
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 # hg.slitaz.org (Mercurial repos)
97 #
98 $HTTP["host"] =~ "hg\.slitaz\.org" {
99 cgi.assign = (
100 ".cgi" => "/usr/bin/python"
101 )
102 server.document-root = "/home/slitaz/www/hg"
103 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
104 }
106 # repos.slitaz.org (Mercurial repos with auth and write access)
107 #
108 $HTTP["host"] =~ "repos\.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 auth.backend = "plain"
115 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
116 auth.require = ( "/" =>
117 (
118 "method" => "basic",
119 "realm" => "SliTaz Mercurial repositories protected area",
120 "require" => "valid-user"
121 )
122 )
124 }
126 # doc.slitaz.org
127 #
128 $HTTP["host"] =~ "doc\.slitaz\.org" {
129 server.document-root = "/home/slitaz/www/doc"
130 index-file.names = ("doku.php")
131 var.dokudir = ""
132 # Rewrites for dokuwiki
133 url.rewrite = (
134 "^" + var.dokudir + "/lib/.*$" => "$0",
135 "^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
136 "^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
137 "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
138 "^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
139 "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
140 "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
141 "^" + var.dokudir + "/doku.php.*" => "$0",
142 "^" + var.dokudir + "/feed.php.*" => "$0",
143 "^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
144 "^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
145 )
146 }