X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fevolution-events-nl;h=8807091cb4174af84aa7d0164471c27fc1de1b6d;hb=3c36c2d5addddb606d655490f083f1ab05251fe0;hp=1a7085b1f986591b12658a9848a93bce03c3ef6b;hpb=566b527940d8da5c0530ff60a62c641742cc6876;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/evolution-events-nl b/etc/lighttpd/vhosts/evolution-events-nl index 1a7085b..8807091 100644 --- a/etc/lighttpd/vhosts/evolution-events-nl +++ b/etc/lighttpd/vhosts/evolution-events-nl @@ -7,7 +7,11 @@ $HTTP["host"] =~ ".evolution-events.nl$" { var.site-fcgi-dir = var.fcgi-dir + "/evolution-events-nl" evhost.path-pattern = var.site-dir + "/htdocs/%3/" - accesslog.filename = var.site-dir + "/logs/access.log" + + # Configure a simple plaintext password file + auth.backend = "plain" + auth.backend.plain.userfile = var.site-dir + "/conf/simple.user" + fastcgi.server += ( ".php" => @@ -32,8 +36,6 @@ $HTTP["host"] =~ ".evolution-events.nl$" { ) $HTTP["host"] =~ "^orga.evolution-events.nl$" { - auth.backend = "plain" - auth.backend.plain.userfile = var.site-dir + "/conf/simple.user" auth.require += ( "/private" => ( @@ -49,6 +51,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,10 +89,25 @@ $HTTP["host"] =~ ".evolution-events.nl$" { ) url.rewrite-once += ( +# "^(/.*)$" => "/", "^(/media.*)$" => "$1", "^(/static.*)$" => "$1", "^/favicon\.ico$" => "/media/favicon.ico", "^(/.*)$" => "/blaa$1", ) } + + # Redirect some deprecated urls. + $HTTP["host"] =~ "^lextalionis2.evolution-events.nl$" { + url.redirect = ( "^(.*)$" => "http://lextalionis.evolution-events.nl$1" ) + } + $HTTP["host"] =~ "^raganorck2.evolution-events.nl$" { + url.redirect = ( "^(.*)$" => "http://raganorck.evolution-events.nl$1" ) + } + $HTTP["host"] =~ "^exodus2.evolution-events.nl$" { + url.redirect = ( "^(.*)$" => "http://exodus.evolution-events.nl$1" ) + } + $HTTP["host"] =~ "^www2.evolution-events.nl$" { + url.redirect = ( "^(.*)$" => "http://www.evolution-events.nl$1" ) + } }