pnp4nagios/sample-config/lighttpd.pnp4nagios.conf.in

21 lines
582 B
Plaintext
Raw Normal View History

2017-05-20 15:26:21 +02:00
#
# 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"
)
)
}