lighttpd: Enable blosxom on www.stderr.nl/blosxom.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sun, 29 Mar 2009 19:16:37 +0000 (21:16 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sun, 29 Mar 2009 19:16:37 +0000 (21:16 +0200)
This is not the final configuration, but it should make blosxom work for
now.

etc/lighttpd/vhosts/stderr-nl

index 20d325e1e00befff6535dfa896dc230ad9534020..bc51b2f9f223fc741584d8803a9293cf4fa3702a 100644 (file)
@@ -13,8 +13,6 @@ $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(/.*)?$" {
@@ -37,4 +35,17 @@ $HTTP["host"] =~ ".stderr.nl$" {
                        )
                )
        }
+
+       $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/",
+                       )
+               }
+       }
 }