lighttpd: Enable phpldapadmin on www.stderr.nl/ldap.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / stderr-nl
index 71089a9d808eb8f21660d9def581b7b645859ec1..33fa8553f6a46615193b69c7da2a3aac4deec119 100644 (file)
@@ -13,13 +13,14 @@ $HTTP["host"] =~ ".stderr.nl$" {
                ))
        )
 
-       cgi.assign = ( "cgi" => "" )
-
        $HTTP["host"] =~ "git.stderr.nl$" {
                # Put this alias in a url conditional, so urls like /gitweb.css won't get alias'd
                $HTTP["url"] =~ "^/gitweb(/.*)?$" {
                        alias.url += ( "/gitweb" => "/usr/lib/cgi-bin/gitweb.cgi" )
                }
+               $HTTP["url"] =~ ".git/" {
+                       alias.url += ( "/" => "/data/vcs/git/" )
+               }
        }
 
        $HTTP["host"] =~ "indigetes.stderr.nl$" {
@@ -34,4 +35,21 @@ $HTTP["host"] =~ ".stderr.nl$" {
                        )
                )
        }
+
+       $HTTP["host"] =~ "^drsnuggles.stderr.nl$" {
+               alias.url += ("/ldap" => "/usr/share/phpldapadmin/htdocs")
+       }
+
+       $HTTP["host"] =~ "^www.stderr.nl$" {
+               $HTTP["url"] =~ "^/blosxom" {
+                       cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" )
+                       alias.url += ( "/blosxom" => var.site-dir + "/applications/blosxom/blosxom.cgi" )
+                       setenv.add-environment += (
+                               "BLOSXOM_CONFIG_FILE" => var.site-dir + "/conf/blosxom.conf",
+                               "BLOSXOM_DATA_BASE" => var.site-dir + "/data/blosxom",
+                               "BLOSXOM_CODE_BASE" => var.site-dir + "/applications/blosxom",
+                               "BLOSXOM_HTDOCS_URL" =>  "/blog/",
+                       )
+               }
+       }
 }