You don't have permission to access /nagios/ on this server.
Posted: Sat Jan 07, 2017 7:37 pm
Hello Support,
I have installed the nagios-4.2.4 and nagios-plugins-2.1.4 with no error. Issue is when I try to access the Nagios using web interface I am getting below error. This issue is happening when I use servername.domain/nagios and IP address/nagios, however, I can login successfully with localhost/nagios url
"You don't have permission to access /nagios/ on this server."
Below is the message from /var/log/httpd/error_log
I can see that php rpm is installed in the system
[root@~etc]# rpm -qa php
php-5.3.3-48.el6_8.x86_64
index.php entry is also included in php.conf file located under /etc/httpd/conf.d
Please advise.
Thank you,
I have installed the nagios-4.2.4 and nagios-plugins-2.1.4 with no error. Issue is when I try to access the Nagios using web interface I am getting below error. This issue is happening when I use servername.domain/nagios and IP address/nagios, however, I can login successfully with localhost/nagios url
"You don't have permission to access /nagios/ on this server."
Below is the message from /var/log/httpd/error_log
Code: Select all
[Thu Jan 05 04:58:43 2017] [error] [client 192.168.1.13] Directory index forbidden by Options directive: /usr/local/nagios/share/
[Thu Jan 05 05:01:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:06:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:11:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:16:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:21:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:24:59 2017] [error] [client 192.168.1.13] Directory index forbidden by Options directive: /usr/local/nagios/share/
[Thu Jan 05 05:24:59 2017] [error] [client 192.168.1.13] File does not exist: /var/www/html/favicon.ico, referer: http://ambari.localdomain/nagios/
[Thu Jan 05 05:26:52 2017] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[root@~etc]# rpm -qa php
php-5.3.3-48.el6_8.x86_64
index.php entry is also included in php.conf file located under /etc/httpd/conf.d
Code: Select all
[root@~conf.d]# pwd
/etc/httpd/conf.d
[root@~conf.d]# cat php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
Thank you,