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" =>
)
$HTTP["host"] =~ "^orga.evolution-events.nl$" {
- auth.backend = "plain"
- auth.backend.plain.userfile = var.site-dir + "/conf/simple.user"
auth.require += ( "/private" =>
(
"require" => "user=admin"
)
)
-
+ $HTTP["url"] =~ "^/private/" {
+ # Enable dirlistings for /private
+ server.dir-listing = "enable"
+ }
url.rewrite-once += (
"^/forum/(.+)$" => "/forum/",
)
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",
)
}