X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstdout-nl;h=1bd9fb89273b98e98521fefbe28428ffdfa20c07;hb=818442a9ed320ab8feaba86ebf3c56f33a180683;hp=98e286e7652b7cc3f6dc46b04384bd45cc191bc2;hpb=b3e4ccffd2ec8225fcf8b9fa40a9279e2af3e31b;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stdout-nl b/etc/lighttpd/vhosts/stdout-nl index 98e286e..1bd9fb8 100644 --- a/etc/lighttpd/vhosts/stdout-nl +++ b/etc/lighttpd/vhosts/stdout-nl @@ -3,7 +3,6 @@ $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" => (( @@ -15,4 +14,23 @@ $HTTP["host"] =~ ".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" + ) + ) + } + }