pnp4nagios/sample-config/lighttpd.pnp4nagios.conf.in
2017-05-20 15:26:21 +02:00

21 lines
582 B
Plaintext

#
# Sample Lighttpd Config snippet.
# Tested on Debian.
#
server.modules += ( "mod_auth" )
alias.url += (
"@BASE_URL@" => "@datarootdir@"
)
$HTTP["url"] =~ "(^@BASE_URL@)" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/usr/local/nagios/etc/htpasswd.users"
auth.require = ( "" => (
"method" => "basic",
"realm" => "Nagios Access",
"require" => "valid-user"
)
)
}