- $HTTP["host"] == "mail.stdout.nl" {
- # Specify the certificate for this domain (uses SNI)
- ssl.pemfile = "/etc/lighttpd/ssl/mail.stdout.nl.pem"
- # Redirect HTTP to HTTPS for mail.stdout.nl
- $HTTP["scheme"] == "http" {
- url.redirect = ( "^(.*)" => "https://mail.stdout.nl$1" )
- }
+ $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"
+ )
+ )