Nagios 403 forbidden, indexes?

Posted by Georgi on Server Fault See other posts from Server Fault or by Georgi
Published on 2012-03-04T17:30:55Z Indexed on 2012/12/17 11:04 UTC
Read the original article Hit count: 557

Filed under:
|
|

installed nagios under freebsd 9, but can't get the right way to be public in browser (from other pc's). I think that the problem is in the indexes or that there is not index file (instead main.php). Apache says that syntax is ok. The permissions of the dir are 777. The logs print Directory index forbidden by Options directive: /usr/local/www/nagios/. This is my configuration:

ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/

Alias /nagios /usr/local/www/nagios/
<Directory /usr/local/www/nagios>

Options +Indexes FollowSymLinks +ExecCGI

AllowOverride Indexes AuthConfig FileInfo

Order allow,deny

Allow from all

AuthName "Nagios Access"

AuthType Basic

AuthUSerFile /usr/local/etc/nagios/htpasswd.users

Require valid-user

</Directory>
<Directory /usr/local/www/nagios/cgi-bin>

Options +ExecCGI

AllowOverride None

Order allow,deny

Allow from all

AuthName "Nagios Access"

AuthType Basic

AuthUSerFile /usr/local/etc/nagios/htpasswd.users

Require valid-user

</Directory>

I think that the problem is in idexes, maybe? When I remove the options it's public and available but lists the files and says that idnexes are forbidden..

© Server Fault or respective owner

Related posts about permissions

Related posts about nagios