lighttpd: Redirect all of www.stderr.nl to kat.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sun, 24 May 2009 16:18:22 +0000 (18:18 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sun, 24 May 2009 16:18:22 +0000 (18:18 +0200)
Previously, only the root was redirected using a php script, but now I
can also make permanent links using www.stderr.nl/something.

etc/lighttpd/vhosts/stderr-nl

index eb39fc3629c00940672da30f1770ac8bc86d0788..edab22b99d32dabc200c26f26b648721d34eb097 100644 (file)
@@ -46,6 +46,9 @@ $HTTP["host"] =~ ".stderr.nl$" {
        }
 
        $HTTP["host"] =~ "^www.stderr.nl$" {
+               $HTTP["url"] !~ "^/(blosxom|blog)" {
+                       url.redirect += ("^(.*)$" => "http://katherina.student.utwente.nl/~matthijs/cgi-bin/blosxom$1")
+               }
                $HTTP["url"] =~ "^/blosxom" {
                        cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" )
                        alias.url += ( "/blosxom" => var.site-dir + "/applications/blosxom/blosxom.cgi" )