X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstderr-nl;h=5398ed18feaea8006798ae110572d5a5ee0f2bf7;hb=56d331bf17b5fc6a53fafd808c129545bbd1b13f;hp=9f82fefc7283e1f94a8a925c57f209a9f23cd435;hpb=50754d4197147f4ca3169da2405c90bd594e9062;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 9f82fef..5398ed1 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -18,6 +18,8 @@ $HTTP["host"] =~ ".stderr.nl$" { # thesis. Use .* instead of λ, since mod_redirect doesn't like # the λ for some reason. url.redirect += ("^/gitweb\?p=matthijs/projects/c.*ash\.git" => "/gitweb?p=matthijs/master-project/cλash.git") + # Redirect / to gitweb + url.redirect += ("^/$" => "/gitweb") } $HTTP["host"] =~ "hg.stderr.nl$" { @@ -53,20 +55,21 @@ $HTTP["host"] =~ ".stderr.nl$" { } $HTTP["host"] =~ "^drsnuggles.stderr.nl$" { - alias.url += ("/ldap" => "/usr/share/phpldapadmin-patched/htdocs") + alias.url += ("/ldap" => "/usr/share/phpldapadmin/htdocs") } $HTTP["host"] =~ "^www.stderr.nl$" { url.redirect += ("^/$" => "/Blog/") # Category got renamed url.redirect += ("^/Blog/personal(.*)" => "/Blog/Personal$1") - $HTTP["url"] =~ "^/Blog" { + $HTTP["url"] !~ "^/(Old blog|static)" { cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" ) - alias.url += ( "/Blog" => var.site-dir + "/applications/blosxom/blosxom.cgi" ) + alias.url += ( "" => 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_LOGS_BASE" => var.site-dir + "/logs", "BLOSXOM_HTDOCS_URL" => "/static/", ) }