slitaz-forge diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tank/files/etc/lighttpd/vhosts.conf Tue Mar 20 22:12:29 2012 +0100 1.3 @@ -0,0 +1,107 @@ 1.4 +# /etc/lighttpd/vhosts.conf : Virtual hosts configuration file. 1.5 +# 1.6 + 1.7 +# tank.slitaz.org (Server canonical hostname) 1.8 +# 1.9 +$HTTP["host"] =~ "tank\.slitaz\.org$" { 1.10 + server.document-root = "/home/slitaz/www/tank" 1.11 + server.errorlog = "/var/log/lighttpd/tank.slitaz.org-error.log" 1.12 + accesslog.filename = "/var/log/lighttpd/tank.slitaz.org-access.log" 1.13 + include "awstats.conf" 1.14 + index-file.names += ( "index.php" ) 1.15 +} 1.16 + 1.17 +# pro.slitaz.org 1.18 +# 1.19 +$HTTP["host"] =~ "pro\.slitaz\.org$" { 1.20 + server.document-root = "/home/slitaz/www/pro" 1.21 + server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log" 1.22 + accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log" 1.23 + include "awstats.conf" 1.24 + cgi.assign = ( 1.25 + ".cgi" => "/bin/sh" 1.26 + ) 1.27 +} 1.28 + 1.29 +# boot.slitaz.org 1.30 +# 1.31 +$HTTP["host"] =~ "boot\.slitaz\.org$" { 1.32 + server.document-root = "/home/slitaz/www/boot" 1.33 + server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log" 1.34 + accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log" 1.35 + include "awstats.conf" 1.36 + cgi.assign = ( 1.37 + ".cgi" => "/bin/sh" 1.38 + ) 1.39 +} 1.40 + 1.41 +# people.slitaz.org 1.42 +# 1.43 +$HTTP["host"] =~ "people\.slitaz\.org$" { 1.44 + userdir.path = "Public" 1.45 + userdir.exclude-user = ("root") 1.46 + server.document-root = "/home/slitaz/www/people" 1.47 + server.errorlog = "/var/log/lighttpd/people.slitaz.org-erro.log" 1.48 + accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log" 1.49 + include "awstats.conf" 1.50 +} 1.51 + 1.52 +# pkgs.slitaz.org 1.53 +# 1.54 +$HTTP["host"] =~ "pkgs\.slitaz\.org$" { 1.55 + server.document-root = "/home/slitaz/www/pkgs" 1.56 + server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log" 1.57 + accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log" 1.58 + cgi.assign = ( 1.59 + ".cgi" => "/bin/sh" 1.60 + ) 1.61 +} 1.62 + 1.63 +# cook.slitaz.org 1.64 +# 1.65 +$HTTP["host"] =~ "cook\.slitaz\.org$" { 1.66 + server.document-root = "/home/slitaz/www/cook" 1.67 + server.errorlog = "/var/log/lighttpd/cook.slitaz.org-error.log" 1.68 + accesslog.filename = "/var/log/lighttpd/cook.slitaz.org-access.log" 1.69 + cgi.assign = ( 1.70 + ".cgi" => "/bin/sh" 1.71 + ) 1.72 + index-file.names = ( "cooker.cgi" ) 1.73 +} 1.74 + 1.75 +# ssfs.slitaz.org 1.76 +# 1.77 +$HTTP["host"] =~ "ssfs\.slitaz\.org$" { 1.78 + cgi.assign = ( 1.79 + ".cgi" => "/bin/sh" 1.80 + ) 1.81 + index-file.names = ( "ssfs.cgi" ) 1.82 + server.document-root = "/home/slitaz/www/ssfs" 1.83 + auth.backend = "plain" 1.84 + auth.backend.plain.userfile = "/etc/ssfs/httpd.users" 1.85 + auth.require = ( "/home/" => 1.86 + ( 1.87 + "method" => "basic", 1.88 + "realm" => "SliTaz Ssfs protected area", 1.89 + "require" => "valid-user" 1.90 + ) 1.91 + ) 1.92 +} 1.93 + 1.94 +# These hosts are personnal website for me and my family, pankso. 1.95 + 1.96 +# pankso.com 1.97 +# 1.98 +$HTTP["host"] =~ "(^|\.)pankso\.com$" { 1.99 + server.document-root = "/home/pankso/vhosts/pankso" 1.100 + server.errorlog = "/var/log/lighttpd/pankso.error.log" 1.101 + accesslog.filename = "/var/log/lighttpd/pankso.access.log" 1.102 +} 1.103 + 1.104 +# lincolm.ch 1.105 +# 1.106 +$HTTP["host"] =~ "(^|\.)lincolm\.ch$" { 1.107 + server.document-root = "/home/pankso/vhosts/lincolm" 1.108 + server.errorlog = "/var/log/lighttpd/lincolm.error.log" 1.109 + accesslog.filename = "/var/log/lighttpd/lincolm.access.log" 1.110 +}