lighttpd/stderr.nl: Enable dirlistings for apt.stderr.nl.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / stdout-nl
index 152b784da8c497b8a1f308c96903f6472025bbd3..1bd9fb89273b98e98521fefbe28428ffdfa20c07 100644 (file)
@@ -14,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"
+                       )
+               )
+       }
+
 }