X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fevolution-events-nl;h=7ee627368ea35daf6caea0fe3ee8842666a043ee;hb=e700a3bddac36be80c12a2adf57f6239b1a6837b;hp=848f47564f44c46b85dbbb062e30aa284e4839a9;hpb=7f86980b73601507bcedbb24cb71344c95f6377d;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/evolution-events-nl b/etc/lighttpd/vhosts/evolution-events-nl index 848f475..7ee6273 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" => ( @@ -42,7 +44,10 @@ $HTTP["host"] =~ ".evolution-events.nl$" { "require" => "user=admin" ) ) - + $HTTP["url"] =~ "^/private/" { + # Enable dirlistings for /private + server.dir-listing = "enable" + } url.rewrite-once += ( "^/forum/(.+)$" => "/forum/", @@ -71,6 +76,19 @@ $HTTP["host"] =~ ".evolution-events.nl$" { "^(/.*)$" => "/blaa$1", ) } + $HTTP["host"] =~ "^dorestad(1493)?.evolution-events.nl$" { + fastcgi.server += ( + "/reserveren" => + (( + "socket" => var.site-fcgi-dir + "/dorestad-bookings", + "check-local" => "disable", + )), + ) + + alias.url += ( + "/admin/media/" => var.site-dir + "/applications/dorestad-bookings/python-virtualenv/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/contrib/admin/media/", + ) + } $HTTP["host"] =~ "^xerxes.evolution-events.nl$" { fastcgi.server += ( @@ -82,15 +100,14 @@ $HTTP["host"] =~ ".evolution-events.nl$" { ) alias.url += ( - "/media/" => "/home/matthijs/django/contrib/admin/media/", - "/static/" => var.site-dir + "/applications/xerxes/static/", + "/admin/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/", + "/media/" => var.site-dir + "/applications/xerxes/media/", ) url.rewrite-once += ( -# "^(/.*)$" => "/", "^(/media.*)$" => "$1", - "^(/static.*)$" => "$1", - "^/favicon\.ico$" => "/media/favicon.ico", + "^(/admin/media.*)$" => "$1", + #"^/favicon\.ico$" => "/admin/media/favicon.ico", "^(/.*)$" => "/blaa$1", ) }