pnp4nagios/sample-config/config_samples/lighttpd.pnp4nagios.conf.in
2025-08-06 18:11:51 +02:00

21 lines
556 B
Plaintext

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