File pnp4nagios-lighttpd.conf of Package pnp4nagios

# pnp4nagios configuration for lighttpd
# 2012-01-04 Sven Uebelacker <sven@uebelacker.net>
# just add in your lighty vhost:
# include "/etc/pnp4nagios/pnp4nagios-lighttpd.conf"

alias.url +=	(
		"/pnp4nagios" => "/usr/share/pnp4nagios",
		)

$HTTP["url"] =~ "^/pnp4nagios" {
	auth.backend = "htpasswd"
	auth.backend.htpasswd.userfile = "/etc/nagios/htpasswd.users"
	auth.require = (
		"" => (
			"method" => "basic",
			"realm" => "nagios",
			"require" => "valid-user",
		)
	)
}