diff options
Diffstat (limited to 'docker/lighttpd.conf')
-rw-r--r-- | docker/lighttpd.conf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf index 850af409..ac92070d 100644 --- a/docker/lighttpd.conf +++ b/docker/lighttpd.conf @@ -14,4 +14,14 @@ mimetype.assign = ( static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" ) index-file.names = ( "index.html" ) - +server.modules += ( "mod_auth" ) +auth.debug = 2 +auth.backend = "plain" +auth.backend.plain.userfile = "/etc/lighttpd/authorization" +auth.require = ( "/" => +( +"method" => "basic", +"realm" => "Password protected area", +"require" => "valid-user" +) +) |