lighttpd: Move the php fastcgi server down in stderr.nl
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 7 May 2009 09:46:58 +0000 (11:46 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 7 May 2009 09:46:58 +0000 (11:46 +0200)
This prevents php from triggering on trac urls.

etc/lighttpd/vhosts/stderr-nl

index f332a7190eeab7d10e6df6483b5f9e82791d95ac..5ece6d92acba79350a3a43270059497c0a8603d2 100644 (file)
@@ -5,14 +5,6 @@ $HTTP["host"] =~ ".stderr.nl$" {
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
        accesslog.filename   = var.site-dir + "/logs/access.log"
 
-       fastcgi.server    = ( 
-               ".php" => 
-               ((
-                       "socket" => var.site-fcgi-dir + "/php",
-                       "broken-scriptfilename" => "enable",
-               ))
-       )
-
        $HTTP["host"] =~ "git.stderr.nl$" {
                cgi.assign += ( "gitweb.cgi" => "" )
                # Put this alias in a url conditional, so urls like /gitweb.css won't get alias'd
@@ -70,4 +62,15 @@ $HTTP["host"] =~ ".stderr.nl$" {
                #       ))
                #)
        }
+
+       # Put the php fastcgi server last, so it won't trigger on any urls that
+       # should be handled by other fastcgi servers (for example, viewing a
+       # .php file in trac results in an url /trac/.../foo.php).
+       fastcgi.server    += ( 
+               ".php" => 
+               ((
+                       "socket" => var.site-fcgi-dir + "/php",
+                       "broken-scriptfilename" => "enable",
+               ))
+       )
 }