X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fevolution-events-nl;h=a24a31ce7c7443937b51fc16ccda7a8c976dd6ca;hb=e3a83cd73d36177c783c51c5bde37e45441b7459;hp=9384245ca28a9f73ca660c18e1a9cd8d752197e5;hpb=69e76c209bb9ea4013daae129136a2297f5548b8;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/evolution-events-nl b/etc/lighttpd/vhosts/evolution-events-nl index 9384245..a24a31c 100644 --- a/etc/lighttpd/vhosts/evolution-events-nl +++ b/etc/lighttpd/vhosts/evolution-events-nl @@ -7,6 +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/" + + # Configure a simple plaintext password file + auth.backend = "plain" + auth.backend.plain.userfile = var.site-dir + "/conf/simple.user" + fastcgi.server += ( ".php" => @@ -31,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" => ( @@ -41,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/", @@ -81,15 +87,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", ) }