Nagios cgi-bin directory 404


#1

All of my .cgi scripts are showing 404

The requested URL /nagios/cgi-bin/status.cgi was not found on this server.
The requested URL /nagios/cgi-bin/tac.cgi was not found on this server.
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server.

The files do physically reside at /usr/local/nagios/sbin/

The following lines are in my httpd.conf:

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>

I used the following tutorial for install.

kernelhardware.org/install-n … -centos-5/

I am using Centos 5.6 Final w/ Nagios 3.3.1

I’ve lost my mind troubleshooting this for the past 4 hours. :twisted: