lighttpd/evolution-events.nl: Redirect old /forum urls.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / evolution-events-nl
index c31fbd56787a51448517454fe329b2b57b897d31..7084a2f9352ea541fe21a229299160656354bca6 100644 (file)
@@ -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" => 
@@ -19,7 +23,6 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                ((
                        "socket" => var.site-fcgi-dir + "/wipi",
                        "check-local" => "disable",
-                       "broken-scriptfilename" => "enable",
                )),
        )
        alias.url += (
@@ -29,12 +32,10 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
        
        url.rewrite-once += (
                "^/wipi/static/(.*)$" => "/staticwipi/$1",
-               "^/Site(/.*|)$" => "/wipi/Site/$1",
+               "^/Site(/.*|\?.*|)$" => "/wipi/Site/$1",
        )
 
        $HTTP["host"] =~ "^orga.evolution-events.nl$" {
-               auth.backend                 = "plain"
-               auth.backend.plain.userfile  = var.site-dir + "/conf/simple.user"
 
                auth.require    += ( "/private" => 
                        ( 
@@ -43,10 +44,49 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                                "require" => "user=admin"
                        )
                )
-               
+               $HTTP["url"] =~ "^/private/" {
+                   # Enable dirlistings for /private
+                   server.dir-listing = "enable"
+               }
+       }
+
+       $HTTP["host"] =~ "^orga-forum.evolution-events.nl$" {
+               url.redirect = ( ".*" => "http://orga.evolution-events.nl/forum" )
+       }
+
+       $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 += (
-                       "^/forum/(.+)$" => "/forum/",
+#                      "^(/.*)$" => "/",
+                       "^(/media.*)$" => "$1",
+                       "^(/static.*)$" => "$1",
+                       "^/favicon\.ico$" => "/media/favicon.ico",
+                       "^(/.*)$" => "/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/",
                )
        }
 
@@ -60,15 +100,49 @@ $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",
                )
        }
+       
+       # 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" )
+       }
+       
+       # Redirect old forum urls
+       $HTTP["host"] =~ "^deadfoxjunction.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=58" )
+       }
+       $HTTP["host"] =~ "^blackbox.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=57" )
+       }
+       $HTTP["host"] =~ "^exit.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=72" )
+       }
+       $HTTP["host"] =~ "^lextalionis.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=75" )
+       }
+       $HTTP["host"] =~ "^exodus.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=74" )
+       }
+       $HTTP["host"] =~ "^nyderpunxt.evolution-events.nl$" {
+           url.redirect += ( "^/forum(/.*)?$" => "http://www.evolution-events.nl/forum/viewforum.php?f=73" )
+       }
 }