lighttpd/evolution-events.nl: Redirect old /forum urls.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / evolution-events-nl
index a24a31ce7c7443937b51fc16ccda7a8c976dd6ca..7084a2f9352ea541fe21a229299160656354bca6 100644 (file)
@@ -48,10 +48,10 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                    # 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$" {
@@ -76,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  += ( 
@@ -112,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" )
+       }
 }