X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=etc%2Flighttpd%2Fvhosts%2Fstderr-nl;h=fd12de44c5401f904dd9b2315c236b9bfdf1151e;hb=10d2b563454e14f6d7e2e56d9656f4b3c6ebf33a;hp=d251ff8759788699585f4c7d873b48baafd542fd;hpb=69e76c209bb9ea4013daae129136a2297f5548b8;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index d251ff8..fd12de4 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -19,6 +19,17 @@ $HTTP["host"] =~ ".stderr.nl$" { url.redirect += ("^/gitweb\?p=matthijs/projects/c.*ash\.git" => "/gitweb?p=matthijs/master-project/cλash.git") # Redirect / to gitweb url.redirect += ("^/$" => "/gitweb") + $HTTP["querystring"] =~ "/brevidius/" { + auth.backend = "htpasswd" + auth.backend.htpasswd.userfile = var.site-dir + "/conf/brevidius.user" + auth.require = ( + "/" => ( + "method" => "basic", + "realm" => "Brevidius", + "require" => "valid-user" + ) + ) + } } $HTTP["host"] =~ "hg.stderr.nl$" { @@ -61,7 +72,7 @@ $HTTP["host"] =~ ".stderr.nl$" { url.redirect += ("^/$" => "/Blog/") # Category got renamed url.redirect += ("^/Blog/personal(.*)" => "/Blog/Personal$1") - $HTTP["url"] !~ "^/(Old blog|static)" { + $HTTP["url"] !~ "^/(Old blog|static|stats)" { cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" ) alias.url += ( "" => var.site-dir + "/applications/blosxom/blosxom.cgi" ) setenv.add-environment += ( @@ -92,4 +103,9 @@ $HTTP["host"] =~ ".stderr.nl$" { "broken-scriptfilename" => "enable", )) ) + + $HTTP["url"] =~ "^/static/tmp/" { + # Enable dirlistings for /tmp + server.dir-listing = "enable" + } }