# HG changeset patch # User Christopher Rogers # Date 1327399169 18000 # Node ID 07eceb43da11f07bb6087d20aa78c1001567e248 # Parent 1faf54d48fc14cb46fda4ae861398cf2245c0ad6 initramfs/etc: Add piratebox.lan support. diff -r 1faf54d48fc1 -r 07eceb43da11 initramfs/etc/lighttpd/lighttpd.conf --- a/initramfs/etc/lighttpd/lighttpd.conf Tue Jan 24 04:53:38 2012 -0500 +++ b/initramfs/etc/lighttpd/lighttpd.conf Tue Jan 24 04:59:29 2012 -0500 @@ -46,6 +46,7 @@ # mimetype.assign = ( ".html" => "text/html", + ".htm" => "text/html", ".txt" => "text/plain", ".js" => "text/javascript", ".css" => "text/css", diff -r 1faf54d48fc1 -r 07eceb43da11 initramfs/etc/lighttpd/vhosts-local-tank.conf --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf Tue Jan 24 04:53:38 2012 -0500 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf Tue Jan 24 04:59:29 2012 -0500 @@ -227,3 +227,18 @@ server.errorlog = "/var/log/lighttpd/pizza.slitaz.org-error.log" accesslog.filename = "/var/log/lighttpd/pizza.slitaz.org-access.log" } + +# piratebox.lan +# +$HTTP["host"] =~ "piratebox\.lan" { + server.document-root = "/home/slitaz/www/piratebox" + server.errorlog = "/var/log/lighttpd/piratebox.lan-error.log" + accesslog.filename = "/var/log/lighttpd/piratebox.lan-access.log" + static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".py" ) + $HTTP["url"] =~ "/cgi-bin/" { + cgi.assign = ( + ".cgi" => "/usr/bin/perl", + ".py" => "/usr/bin/python" + ) + } +} \ No newline at end of file diff -r 1faf54d48fc1 -r 07eceb43da11 initramfs/etc/local-mirror.conf --- a/initramfs/etc/local-mirror.conf Tue Jan 24 04:53:38 2012 -0500 +++ b/initramfs/etc/local-mirror.conf Tue Jan 24 04:59:29 2012 -0500 @@ -3,15 +3,15 @@ slitaz-doc-wiki-data slitaz-forge slitaz-modular slitaz-pizza \ slitaz-tools slitaz-vz ssfs tazlito tazpanel tazpkg tazusb \ tazwok slitaz-dev-tools website wok wok-stable wok-tiny \ - wok-undigest wok-tank my-cookutils" + wok-undigest wok-tank my-cookutils piratebox" WWW="website people doc pizza cook pkgs mirror boot tank hg \ -lfs absguide man-html hgbook gimp.en gimp.fr gimp.es" +lfs absguide man-html piratebox hgbook gimp.en gimp.fr gimp.es" IP_ADDR="127.0.0.1" ROUTER_IP="192.168.1.1" ADDRESS="www.slitaz.org pizza.slitaz.org boot.slitaz.org \ mirror.slitaz.org tank.slitaz.org doc.slitaz.org \ pkgs.slitaz.org hg.slitaz.org cook.slitaz.org \ -people.slitaz.org" +people.slitaz.org piratebox.lan" VHOST_FILE="/etc/lighttpd/vhosts-local.conf" VHOST_MIRROR_FILE="/etc/lighttpd/vhosts-local-mirror.conf" VHOST_TANK_FILE="/etc/lighttpd/vhosts-local-tank.conf"