projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lighttpd/stdout.nl: Add authentication for /beef.
[matthijs/servers/drsnuggles.git]
/
etc
/
lighttpd
/
vhosts
/
stdout-nl
diff --git
a/etc/lighttpd/vhosts/stdout-nl
b/etc/lighttpd/vhosts/stdout-nl
index 1fbb4e4f1d46e17270144c7ab58aec07b0588f9b..1bd9fb89273b98e98521fefbe28428ffdfa20c07 100644
(file)
--- a/
etc/lighttpd/vhosts/stdout-nl
+++ b/
etc/lighttpd/vhosts/stdout-nl
@@
-19,4
+19,18
@@
$HTTP["host"] =~ ".stdout.nl$" {
# Enable dirlistings for /tmp
server.dir-listing = "enable"
}
# 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"
+ )
+ )
+ }
+
}
}