From 1ea96d8de7a5a4d23846043547149d89eb3261dc Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 4 Jan 2010 20:39:24 +0100 Subject: [PATCH] lighttpd: Add config for Hunternet. --- etc/init.d/fastcgi | 2 +- etc/lighttpd/vhosts/evolution-events-nl | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/etc/init.d/fastcgi b/etc/init.d/fastcgi index 209ea44..67b7ac8 100755 --- a/etc/init.d/fastcgi +++ b/etc/init.d/fastcgi @@ -28,7 +28,7 @@ SITES=[ ('stdout.nl', ['php']), ('ninniach.nl', ['php']), ('blues-brothers.eu', ['php']), - ('evolution-events.nl', ['php', ('wipi', 'applications/wipi/wipi.fcgi')]), #, ('xerxes', 'applications/xerxes/manage.py runfcgi')]), + ('evolution-events.nl', ['php', ('wipi', 'applications/wipi/wipi.fcgi'), ('hunternet', 'applications/lexnet/manage.py runfcgi')]), #, ('xerxes', 'applications/xerxes/manage.py runfcgi')]), # ('stdio.flexvps.nl', ['php']), # ('foresightsecurity.nl', ['php']), ] diff --git a/etc/lighttpd/vhosts/evolution-events-nl b/etc/lighttpd/vhosts/evolution-events-nl index 1a7085b..933cdcf 100644 --- a/etc/lighttpd/vhosts/evolution-events-nl +++ b/etc/lighttpd/vhosts/evolution-events-nl @@ -49,6 +49,29 @@ $HTTP["host"] =~ ".evolution-events.nl$" { ) } + $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" { + fastcgi.server += ( + "/blaa" => + (( + "socket" => var.site-fcgi-dir + "/hunternet", + "check-local" => "disable", + )), + ) + + alias.url += ( + "/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/", + "/static/" => var.site-dir + "/applications/xerxes/media/", + ) + + url.rewrite-once += ( +# "^(/.*)$" => "/", + "^(/media.*)$" => "$1", + "^(/static.*)$" => "$1", + "^/favicon\.ico$" => "/media/favicon.ico", + "^(/.*)$" => "/blaa$1", + ) + } + $HTTP["host"] =~ "^xerxes.evolution-events.nl$" { fastcgi.server += ( "/blaa" => @@ -64,6 +87,7 @@ $HTTP["host"] =~ ".evolution-events.nl$" { ) url.rewrite-once += ( +# "^(/.*)$" => "/", "^(/media.*)$" => "$1", "^(/static.*)$" => "$1", "^/favicon\.ico$" => "/media/favicon.ico", -- 2.30.2