$HTTP["host"] =~ ".stdout.nl$" { var.site-dir = var.root-dir + "/stdout.nl" var.site-fcgi-dir = var.fcgi-dir + "/stdout-nl" evhost.path-pattern = var.site-dir + "/htdocs/%3/" fastcgi.server = ( ".php" => (( "socket" => var.site-fcgi-dir + "/php", )) ) $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" ) ) } }