### # local changes for Nagios 3.0.1 server.modules += ( "mod_alias", "mod_cgi", "mod_auth" ) alias.url = ( "/nagios/cgi-bin" => "/usr/lib/nagios/cgi" ) alias.url += ( "/nagios" => "/usr/share/nagios/html" ) $HTTP["url"] =~ "^/nagios/cgi-bin" { cgi.assign = ( ".cgi" => "" ) } ## debugging # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging auth.debug = 0 ## type of backend # plain, htpasswd, ldap or htdigest auth.backend = "htpasswd" ## for htpasswd auth.backend.htpasswd.userfile = "/etc/nagios/nagios.web-users" ## restrictions # set restrictions: # # ( => # ( "method" => "digest"/"basic", # "realm" => , # "require" => "user=" ) # ) # # is a string to display in the dialog # presented to the user and is also used for the # digest-algorithm and has to match the realm in the # htdigest file (if used) # # Or, using regular expressions: $HTTP["url"] =~ "^/nagios.*" { auth.require = ( "" => ( # method must be either basic or digest "method" => "basic", "realm" => "Nagios Web-interface", "require" => "valid-user" ) ) }