--- /dev/null
+$HTTP["host"] =~ ".chimara-if.org$" {
+ var.site-dir = var.root-dir + "/chimara-if.org"
+ var.site-fcgi-dir = var.fcgi-dir + "/chimara-if-org"
+
+ evhost.path-pattern = var.site-dir + "/htdocs/%3/"
+
+ $HTTP["host"] =~ "www.chimara-if.org$" {
+ url.redirect += ("^/trac$" => "/trac/")
+ $HTTP["url"] =~ "^/trac/.*" {
+ fastcgi.server += (
+ "/trac" =>
+ ((
+ "socket" => var.site-fcgi-dir + "/trac",
+ "check-local" => "disable",
+ ))
+ )
+ }
+ }
+
+ # 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",
+ ))
+ )
+}