Nagios “If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.”

ScriptAlias /cgi-bin/nagios “/var/www/cgi-bin/nagios”

<Directory “/var/www/cgi-bin/nagios”>
#  SSLRequireSSL
Options ExecCGI

Satisfy All

AuthName “Nagios Access”
AuthType Basic
AuthUserFile /var/www/users/nagios.passwd
Require valid-user

Order deny,allow
Deny from all
Allow from 192.168.25.0/24
</Directory>

Alias /nagios “/var/www/nagios”

<Directory “/var/www/nagios”>
#  SSLRequireSSL
Options None
AllowOverride None

AuthName “Nagios Access”
AuthType Basic
AuthUserFile /var/www/users/nagios.passwd
Require valid-user

Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>