X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstdout-nl;h=5d6a971630a48f58ab94ffe0aa53a72f7c1183e0;hb=refs%2Fheads%2Fwww;hp=152b784da8c497b8a1f308c96903f6472025bbd3;hpb=69e76c209bb9ea4013daae129136a2297f5548b8;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stdout-nl b/etc/lighttpd/vhosts/stdout-nl index 152b784..5d6a971 100644 --- a/etc/lighttpd/vhosts/stdout-nl +++ b/etc/lighttpd/vhosts/stdout-nl @@ -10,8 +10,24 @@ $HTTP["host"] =~ ".stdout.nl$" { )) ) - $HTTP["host"] == "mail.stdout.nl" { - # Specify the certificate for this domain (uses SNI) - ssl.pemfile = "/etc/lighttpd/ssl/mail.stdout.nl.pem" } + + $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" + ) + ) + } + }