From: Matthijs Kooijman Date: Sun, 29 Mar 2009 19:16:37 +0000 (+0200) Subject: lighttpd: Enable blosxom on www.stderr.nl/blosxom. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=inline;h=18531a9fa669675fea9126adabab7d284a1c6be2;p=matthijs%2Fservers%2Fdrsnuggles.git lighttpd: Enable blosxom on www.stderr.nl/blosxom. This is not the final configuration, but it should make blosxom work for now. --- diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 20d325e..bc51b2f 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -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/", + ) + } + } }