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

Update tank util and add vhosts.conf
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 20 22:12:29 2012 +0100 (2012-03-20)
parents
children 0688e42d0389
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"] =~ "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 include "awstats.conf"
21 cgi.assign = (
22 ".cgi" => "/bin/sh"
23 )
24 }
26 # boot.slitaz.org
27 #
28 $HTTP["host"] =~ "boot\.slitaz\.org$" {
29 server.document-root = "/home/slitaz/www/boot"
30 server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
31 accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
32 include "awstats.conf"
33 cgi.assign = (
34 ".cgi" => "/bin/sh"
35 )
36 }
38 # people.slitaz.org
39 #
40 $HTTP["host"] =~ "people\.slitaz\.org$" {
41 userdir.path = "Public"
42 userdir.exclude-user = ("root")
43 server.document-root = "/home/slitaz/www/people"
44 server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log"
45 accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
46 include "awstats.conf"
47 }
49 # pkgs.slitaz.org
50 #
51 $HTTP["host"] =~ "pkgs\.slitaz\.org$" {
52 server.document-root = "/home/slitaz/www/pkgs"
53 server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
54 accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
55 cgi.assign = (
56 ".cgi" => "/bin/sh"
57 )
58 }
60 # cook.slitaz.org
61 #
62 $HTTP["host"] =~ "cook\.slitaz\.org$" {
63 server.document-root = "/home/slitaz/www/cook"
64 server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log"
65 accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log"
66 cgi.assign = (
67 ".cgi" => "/bin/sh"
68 )
69 index-file.names = ( "cooker.cgi" )
70 }
72 # ssfs.slitaz.org
73 #
74 $HTTP["host"] =~ "ssfs\.slitaz\.org$" {
75 cgi.assign = (
76 ".cgi" => "/bin/sh"
77 )
78 index-file.names = ( "ssfs.cgi" )
79 server.document-root = "/home/slitaz/www/ssfs"
80 auth.backend = "plain"
81 auth.backend.plain.userfile = "/etc/ssfs/httpd.users"
82 auth.require = ( "/home/" =>
83 (
84 "method" => "basic",
85 "realm" => "SliTaz Ssfs protected area",
86 "require" => "valid-user"
87 )
88 )
89 }
91 # These hosts are personnal website for me and my family, pankso.
93 # pankso.com
94 #
95 $HTTP["host"] =~ "(^|\.)pankso\.com$" {
96 server.document-root = "/home/pankso/vhosts/pankso"
97 server.errorlog = "/var/log/lighttpd/pankso.error.log"
98 accesslog.filename = "/var/log/lighttpd/pankso.access.log"
99 }
101 # lincolm.ch
102 #
103 $HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
104 server.document-root = "/home/pankso/vhosts/lincolm"
105 server.errorlog = "/var/log/lighttpd/lincolm.error.log"
106 accesslog.filename = "/var/log/lighttpd/lincolm.access.log"
107 }