X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstdout-nl;h=5d6a971630a48f58ab94ffe0aa53a72f7c1183e0;hb=refs%2Fheads%2Fwww;hp=224818c6a2375f58e5920c066ab092d9fc267d83;hpb=b51e062dca9319e2d9fb48af845815bdbd50a5cc;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stdout-nl b/etc/lighttpd/vhosts/stdout-nl index 224818c..5d6a971 100644 --- a/etc/lighttpd/vhosts/stdout-nl +++ b/etc/lighttpd/vhosts/stdout-nl @@ -3,11 +3,31 @@ $HTTP["host"] =~ ".stdout.nl$" { var.site-fcgi-dir = var.fcgi-dir + "/stdout-nl" evhost.path-pattern = var.site-dir + "/htdocs/%3/" - accesslog.filename = var.site-dir + "/logs/access.log" fastcgi.server = ( ".php" => (( "socket" => var.site-fcgi-dir + "/php", )) ) + + } + + $HTTP["url"] =~ "^/static/tmp/" { + # Enable dirlistings for /tmp + server.dir-listing = "enable" + } + + $HTTP["url"] =~ "^/beef/" { + auth.backend = "htpasswd" + auth.backend.htpasswd.userfile = var.site-dir + "/conf/beef.user" + + auth.require = ( + "/" => ( + "method" => "basic", + "realm" => "Beef", + "require" => "valid-user" + ) + ) + } + }