lighttpd: Only catch /trac/ urls with trac.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sat, 9 May 2009 15:46:58 +0000 (17:46 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sat, 9 May 2009 15:46:58 +0000 (17:46 +0200)
Previously, urls like /tracker would also trigger trac.

etc/lighttpd/vhosts/stderr-nl

index 5ece6d92acba79350a3a43270059497c0a8603d2..addedc81b7468461990698f1cd4e817563889f7d 100644 (file)
@@ -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$" {