lighttpd/evolution-events.nl: Redirect old /forum urls.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / evolution-events-nl
index b20f9648da719e889f6d4287d47d670603a28217..7084a2f9352ea541fe21a229299160656354bca6 100644 (file)
@@ -44,11 +44,14 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                                "require" => "user=admin"
                        )
                )
-               
+               $HTTP["url"] =~ "^/private/" {
+                   # Enable dirlistings for /private
+                   server.dir-listing = "enable"
+               }
+       }
 
-               url.rewrite-once += (
-                       "^/forum/(.+)$" => "/forum/",
-               )
+       $HTTP["host"] =~ "^orga-forum.evolution-events.nl$" {
+               url.redirect = ( ".*" => "http://orga.evolution-events.nl/forum" )
        }
 
        $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" {
@@ -73,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  += ( 
@@ -109,4 +125,24 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
        $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" )
+       }
 }