slitaz-modular rev 162

initramfs/etc: Add piratebox.lan support.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Jan 24 04:59:29 2012 -0500 (2012-01-24)
parents 1faf54d48fc1
children 66b3156a6777
files initramfs/etc/lighttpd/lighttpd.conf initramfs/etc/lighttpd/vhosts-local-tank.conf initramfs/etc/local-mirror.conf
line diff
     1.1 --- a/initramfs/etc/lighttpd/lighttpd.conf	Tue Jan 24 04:53:38 2012 -0500
     1.2 +++ b/initramfs/etc/lighttpd/lighttpd.conf	Tue Jan 24 04:59:29 2012 -0500
     1.3 @@ -46,6 +46,7 @@
     1.4  #
     1.5  mimetype.assign = (
     1.6    ".html" => "text/html",
     1.7 +  ".htm" => "text/html",
     1.8    ".txt" => "text/plain",
     1.9    ".js" => "text/javascript",
    1.10    ".css" => "text/css",
     2.1 --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf	Tue Jan 24 04:53:38 2012 -0500
     2.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf	Tue Jan 24 04:59:29 2012 -0500
     2.3 @@ -227,3 +227,18 @@
     2.4    server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log"
     2.5    accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log"
     2.6  }
     2.7 +
     2.8 +# piratebox.lan
     2.9 +#
    2.10 +$HTTP["host"] =~ "piratebox\.lan" {
    2.11 +  server.document-root = "/home/slitaz/www/piratebox"
    2.12 +  server.errorlog = "/var/log/lighttpd/piratebox.lan-error.log"
    2.13 +  accesslog.filename = "/var/log/lighttpd/piratebox.lan-access.log"
    2.14 +  static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".py" )
    2.15 +  $HTTP["url"] =~ "/cgi-bin/" {
    2.16 +    cgi.assign = (
    2.17 +      ".cgi" => "/usr/bin/perl",
    2.18 +      ".py" => "/usr/bin/python"
    2.19 +    )
    2.20 +  }
    2.21 +}
    2.22 \ No newline at end of file
     3.1 --- a/initramfs/etc/local-mirror.conf	Tue Jan 24 04:53:38 2012 -0500
     3.2 +++ b/initramfs/etc/local-mirror.conf	Tue Jan 24 04:59:29 2012 -0500
     3.3 @@ -3,15 +3,15 @@
     3.4   slitaz-doc-wiki-data slitaz-forge slitaz-modular slitaz-pizza \
     3.5   slitaz-tools slitaz-vz ssfs tazlito tazpanel tazpkg tazusb \
     3.6   tazwok slitaz-dev-tools website wok wok-stable wok-tiny \
     3.7 - wok-undigest wok-tank my-cookutils"
     3.8 + wok-undigest wok-tank my-cookutils piratebox"
     3.9  WWW="website people doc pizza cook pkgs mirror boot tank hg \
    3.10 -lfs absguide man-html hgbook gimp.en gimp.fr gimp.es"
    3.11 +lfs absguide man-html piratebox hgbook gimp.en gimp.fr gimp.es"
    3.12  IP_ADDR="127.0.0.1"
    3.13  ROUTER_IP="192.168.1.1"
    3.14  ADDRESS="www.slitaz.org pizza.slitaz.org boot.slitaz.org \
    3.15  mirror.slitaz.org tank.slitaz.org doc.slitaz.org \
    3.16  pkgs.slitaz.org hg.slitaz.org cook.slitaz.org \
    3.17 -people.slitaz.org"
    3.18 +people.slitaz.org piratebox.lan"
    3.19  VHOST_FILE="/etc/lighttpd/vhosts-local.conf"
    3.20  VHOST_MIRROR_FILE="/etc/lighttpd/vhosts-local-mirror.conf"
    3.21  VHOST_TANK_FILE="/etc/lighttpd/vhosts-local-tank.conf"