Hi All,
I am trying to install Nagios 3.2.0 on Suse Linux 10 SP2. When I try to access the web page I am getting Access forbidden error.
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
bominfnag0001
Thu Nov 26 12:48:46 2009
Apache/2.2.3 (Linux/SUSE)
My Apache Error Log file shows the below details
[Thu Nov 26 12:21:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:26:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:31:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:36:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:41:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:46:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:48:46 2009] [error] [client 10.174.51.205] Directory index forbidden by Options directive: /usr/local/nagios/share/
[Thu Nov 26 12:51:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 12:56:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Nov 26 13:01:07 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
My /etc/apache2/conf.d/nagios.conf file reads as below
bominfnag0001:/etc/apache2/conf.d # cat nagios.conf
SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
Last Modified: 11-26-2005
This file contains examples of entries that need
to be incorporated into your Apache web server
configuration file. Customize the paths, etc. as
needed to fit your system.
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
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