From: Matthijs Kooijman Date: Sat, 9 May 2009 15:46:58 +0000 (+0200) Subject: lighttpd: Only catch /trac/ urls with trac. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=0cfcaed8b5a775e19365bfa591fa2e4e44301d58 lighttpd: Only catch /trac/ urls with trac. Previously, urls like /tracker would also trigger trac. --- diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 5ece6d9..addedc8 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -29,13 +29,15 @@ $HTTP["host"] =~ ".stderr.nl$" { ) # Only publish the pandora trac repos here url.redirect += ("^/trac/?$" => "/trac/pandora") - fastcgi.server += ( - "/trac" => - (( - "socket" => var.site-fcgi-dir + "/trac", - "check-local" => "disable", - )) - ) + $HTTP["url"] =~ "^/trac/.*" { + fastcgi.server += ( + "/trac" => + (( + "socket" => var.site-fcgi-dir + "/trac", + "check-local" => "disable", + )) + ) + } } $HTTP["host"] =~ "^drsnuggles.stderr.nl$" {