File nagios.lighttpd.conf of Package nagios
# Example Nagios configuration for lighttpd. Edit to suit your environment
# and install as /etc/lighttpd/conf.d/nagios.conf, and then include it in
# lighttpd.conf, or in a vhost.
#
# This file was contributed to the openSUSE package, and is not part of the
# upstream Nagios distribution.
# Nagios CGI commands
server.modules += ( "mod_cgi" )
alias.url += ( "/nagios/cgi-bin" => "/usr/lib/nagios/cgi" )
# apache-style cgi-bin, no explicit per-extension handlers
$HTTP["url"] =~ "^/nagios/cgi-bin" {
cgi.assign = ( "" => "" )
}
# Nagios web interface
alias.url += ( "/nagios" => "/usr/share/nagios" )
# switch-nagios-theme only updates Nagios cgi.cfg and apache, so also change
# this alias when switching themes, e.g. change the above to read:
#alias.url += ( "/nagios" => "/usr/share/nagios-themes/exfoliation" )
# PHP should be configured in conf.d/fastcgi.conf.
# You must load mod_auth (in modules.conf) before mod_fastcgi.
# If using an htpasswd file, it must be readable by lighttpd.
# You may find the 'htpasswd' utility (part of the apache2-utils package)
# useful for managing the htpasswd file.
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/nagios/htpasswd.users"
auth.require = (
"/nagios/" => (
"method" => "basic",
"realm" => "Nagios",
"require" => "valid-user"
)
)