Forbidden You don't have permission to access /nagios3/
Posted: Wed May 22, 2013 1:36 pm
Hello
I am trying to install nagios3 on debian 6 .06 and I am getting "Forbidden You don't have permission to access /nagios3/ on this server." when I try to access using browser.
I have php5 installed.Here is my default file "000-default" in sites-available dir of apache2
-----------------------------------------------------------------------------------------------------------
In the /etc/apache2/conf.d I have a softlink to nagios3
nagios3.conf -> /etc/nagios3/apache2.conf
which has
----------------------------------------------------------------------------------------------------------------------------
In html directory I have index.html file where ip address mentioned is of the nagios server
-----------------------------------------------------------------------------------------------------------------------------
From the apache2 error ,I see these
I don't understand what else needs to be checked here.Can anyone please help me out asap...I need to get it in production by tomorrow.
I am trying to install nagios3 on debian 6 .06 and I am getting "Forbidden You don't have permission to access /nagios3/ on this server." when I try to access using browser.
I have php5 installed.Here is my default file "000-default" in sites-available dir of apache2
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>In the /etc/apache2/conf.d I have a softlink to nagios3
nagios3.conf -> /etc/nagios3/apache2.conf
which has
Code: Select all
# apache configuration for nagios 3.x
# note to users of nagios 1.x and 2.x:
# throughout this file are commented out sections which preserve
# backwards compatibility with bookmarks/config for older nagios versios.
# simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 1.x:
#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 2.x:
#ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3
# Where the stylesheets (config files) reside
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
# nagios 1.x:
#Alias /nagios/stylesheets /etc/nagios3/stylesheets
# nagios 2.x:
#Alias /nagios2/stylesheets /etc/nagios3/stylesheets
# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs
# nagios 2.x:
#Alias /nagios2 /usr/share/nagios3/htdocs
# nagios 1.x:
#Alias /nagios /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks
DirectoryIndex index.html
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd.users
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
# XXX This is not tested for nagios 2.x use at your own peril
#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
# nagios 1.x:
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
--------------------------------------------------------------------------------------------
This is my /var/www directory
root@nagios-svr:/var/www# ls -la
total 12
drwxr-xr-x 3 root root 4096 May 22 13:15 .
drwxr-xr-x 14 root root 4096 May 21 16:53 ..
lrwxrwxrwx 1 root root 25 May 22 12:50 htdocs -> /usr/share/nagios3/htdocs
drwxr-xr-x 2 root root 4096 May 22 14:08 html
lrwxrwxrwx 1 root root 24 May 22 12:50 nagios3 -> /usr/lib/cgi-bin/nagios3
lrwxrwxrwx 1 root root 24 May 22 12:51 stylesheets -> /etc/nagios3/stylesheetsIn html directory I have index.html file where ip address mentioned is of the nagios server
Code: Select all
<meta http-equiv="refresh" content="1; url=http://10.28.120.125/nagios3">From the apache2 error ,I see these
Code: Select all
[Wed May 22 14:19:44 2013] [error] [client 10.28.128.140] Directory index forbidden by Options directive: /usr/share/nagios3/htdocs/
[Wed May 22 14:19:48 2013] [error] [client 10.28.128.140] Directory index forbidden by Options directive: /usr/share/nagios3/htdocs/
[Wed May 22 14:20:01 2013] [error] [client 10.28.128.140] Directory index forbidden by Options directive: /usr/share/nagios3/htdocs/I don't understand what else needs to be checked here.Can anyone please help me out asap...I need to get it in production by tomorrow.