You do not have permission to access /nagios on this server

Gezina Dekker gezinker at gmail.com
Mon Mar 8 19:29:11 CET 2010


Robert,

Which files are we talking about?

Regards

Herbie

2010/3/8 Assaf Flatto <nagios at flatto.net>

>  Gezina Dekker wrote:
> >
> > Hi all,
> >
> > I have looked at all the questions so far, and nothing that brings any
> > comfort.
> >
> > I followed the Fedore QuickStart even though I am on RHEL 4 (2.6.9-5.EL)
> >
> > I have all the following installed:
> > Apache
> > PHP
> > GCC compiler
> > GD development libraries
> >
> > I have nagios and nagcmd defined
> >
> > I have installed nagios and the plugins
> >
> > I have a passwd in htpasswd, and it is read acces for all.
> >
> > SELinux is disabled
> >
> > In terms of my nagios.conf, this is it…
> >
> > ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
> >
> > <Directory "/usr/local/nagios/sbin">
> > #  SSLRequireSSL
> >    Options FollowSymLinks ExecCGI
> >    AllowOverride AuthConfig
> >    Order allow,deny
> >    Allow from all
> >    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 FollowSymLinks
> >    DirectoryIndex index.html
> >    AllowOverride AuthConfig
> >    Order allow,deny
> >    Allow from all
> >    AuthName "Nagios Access"
> >    AuthType Basic
> >    AuthUserFile /usr/local/nagios/etc/htpasswd.users
> >    Require valid-user
> > </Directory>
> >
> >
> > The contents of my /share is the following:
> > drwxrwxr-x   9 nagios nagcmd  4096 mrt  8 11:39 .
> > drwx------  12 nagios nagcmd  4096 mrt  8 11:39 ..
> > drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 contexthelp
> > drwxrwxr-x   3 nagios nagcmd  4096 mrt  5 12:23 docs
> > drwxrwxr-x   3 nagios nagcmd  4096 mrt  5 12:23 images
> > -rw-rw-r--   1 nagios nagcmd   726 mrt  5 12:23 index.html
> > drwxr-xr-x   4 root   root    4096 mrt  8 11:39 locale
> > -rw-rw-r--   1 nagios nagcmd  3480 mrt  5 12:23 main.html
> > drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 media
> > -rw-rw-r--   1 nagios nagcmd    26 mrt  5 12:23 robots.txt
> > -rw-rw-r--   1 nagios nagcmd 13532 mrt  5 12:23 side.html
> > drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 ssi
> > drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 stylesheets
> >
> >
> > The errors I am getting is the following:
> >
> > Forbidden
> > You don't have permission to access /nagios on this server.
> > Additionally, a 403 Forbidden error was encountered while trying to
> > use an ErrorDocument to handle the request.
> >
> >
> >
> > Apache/2.0.52 (Red Hat) Server at 172.17.16.56 Port 80
> >
> >
> > I am making the assumption that the 403 is less serious, and that it
> > is actually the permissions that needs fixing…
> >
> > Thanks in advance for your willingness to look at this with me.
>
> Did you restart the apache after the change to the configuration ?
>
> Assaf
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100308/27b90456/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list