addsite: Give lighttpd more permissions on logs.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / evolution-events-nl
index 610be9fa29f1c406a4cf04e4a3560c839de8740f..9384245ca28a9f73ca660c18e1a9cd8d752197e5 100644 (file)
@@ -7,7 +7,6 @@ $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"
        
        fastcgi.server += ( 
                ".php" => 
@@ -19,7 +18,6 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                ((
                        "socket" => var.site-fcgi-dir + "/wipi",
                        "check-local" => "disable",
-                       "broken-scriptfilename" => "enable",
                )),
        )
        alias.url += (
@@ -29,7 +27,7 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
        
        url.rewrite-once += (
                "^/wipi/static/(.*)$" => "/staticwipi/$1",
-               "^(/.*)$" => "$1",
+               "^/Site(/.*|\?.*|)$" => "/wipi/Site/$1",
        )
 
        $HTTP["host"] =~ "^orga.evolution-events.nl$" {
@@ -50,6 +48,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" =>
@@ -65,10 +86,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" )
+       }
 }