From: Matthijs Kooijman Date: Sun, 24 May 2009 16:18:22 +0000 (+0200) Subject: lighttpd: Redirect all of www.stderr.nl to kat. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=31c2947a596fff71cc735cec329f27ba2d67b4be;p=matthijs%2Fservers%2Fdrsnuggles.git lighttpd: Redirect all of www.stderr.nl to kat. Previously, only the root was redirected using a php script, but now I can also make permanent links using www.stderr.nl/something. --- diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index eb39fc3..edab22b 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -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" )