Hello
A new installation of nagios on a headless server can be browsed but clicking on any of the LHS menu items (green "lights") except Home produces an error message like "The requested URL /cgi-bin/nagios3/config.cgi was not found on this server".
What I've tried:
- Netsearched for nagios with "The requested URL" with "was not found on this server". Got few hits, suggesting the problem is specific to this server.
- Checked the nagios Apache config file is symlinked from /etc/apache2/conf.d and has a sane ScriptAlias and DirectoryMatch.
- Checked the CGI script does exist and is readable (and executable, in case it matters).
The evidence:
Code:
root@CW8vDS:~# ls -l /etc/apache2/conf.d/nagios3.conf
lrwxrwxrwx 1 root root 25 Oct 24 18:47 /etc/apache2/conf.d/nagios3.conf -> /etc/nagios3/apache2.conf
root@CW8vDS:~# ls -l /etc/nagios3/apache2.conf
-rw-r--r-- 1 root root 1904 Jul 4 2010 /etc/nagios3/apache2.conf
root@CW8vDS:~# grep -E -v '^[[:space:]]*#|^$' < /etc/nagios3/apache2.conf
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
Alias /nagios3 /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd.users
require valid-user
</DirectoryMatch>
root@CW8vDS:~# ls -l /usr/lib/cgi-bin/nagios3/config.cgi
-rwxr-xr-x 1 root root 206024 Jul 4 2010 /usr/lib/cgi-bin/nagios3/config.cgi
OS: Debian Squeeze 64 bit
nagios: installed by
aptitude install nagios
Apache: as installed with the OS plus some port-based virtual servers.
What to check next?
Best
Charles