From 18531a9fa669675fea9126adabab7d284a1c6be2 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 29 Mar 2009 21:16:37 +0200 Subject: [PATCH] lighttpd: Enable blosxom on www.stderr.nl/blosxom. This is not the final configuration, but it should make blosxom work for now. --- etc/lighttpd/vhosts/stderr-nl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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/", + ) + } + } } -- 2.30.2