From 31c2947a596fff71cc735cec329f27ba2d67b4be Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 24 May 2009 18:18:22 +0200 Subject: [PATCH] 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. --- etc/lighttpd/vhosts/stderr-nl | 3 +++ 1 file changed, 3 insertions(+) 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" ) -- 2.30.2