Error 403 (access forbidden) accessing the cgi files

Harper Mann hmann at itgroundwork.com
Thu Sep 23 18:13:36 CEST 2004


/etc/httpd/conf.d/nagios.conf

 

ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/

<Directory /usr/lib/nagios/cgi/>

   AllowOverride AuthConfig

   Options ExecCGI

   order allow,deny

   allow from all

</Directory>

 

Alias /nagios/ /usr/share/nagios/

<Directory /usr/share/nagios/>

   AllowOverride AuthConfig

   Options None

   order allow,deny

   allow from all

</Directory>

 

Note I use the RPMs which put the Nagios files in different directories.
You may want /usr/local/nagios/sbin for ScriptAlias and
/usr/local/nagios/share for Alias.

 

I also put apache into the “nagios” group so httpd can read the directories:

 

nagios:x:502:apache

 

that’s /etc/group.


Be sure to restart httpd:

 

> “service httpd restart”

 

Hope this works for you,

 

- Harper

 

Harper Mann

Groundwork Open Source Solutions

510-599-2075 (cell)

 

  _____  

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Paulo Jardim
Sent: Thursday, September 23, 2004 7:15 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Error 403 (access forbidden) accessing the cgi files

 

Hi,

 

I have installed Nagios 1.2 in my system. I have configured exactly as the
documentation request.

But, I still have problems to access the CGI files. When I select any option
into the Web menu, I have the following error message :

 


Access forbidden!


You don't have permission to access the requested object. It is either
read-protected or not readable by the server. 

If you think this is a server error, please contact the
<mailto:pjardim at bionexo.com.br> webmaster 


Error 403


 

The files are in /usr/local/nagios/sbin. I have verified the right access
for these files and they are correct.

When I select any option of web interface menu, the status bar of IE is
calling for /nagios/cgi-bin/ instead of /nagios/sbin.

 

Is it the problem ? When it is defined ? What is the correct configuration
for the httpd.conf apache file ?

 

Thanks a lot for any cooperation.

 

Paulo Jardim

Bionexo.com.br

Depto Tecnologia da Informação

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040923/ead2fbe8/attachment.html>


More information about the Users mailing list