Thursday, April 5, 2012

HTTP WARNING: HTTP/1.1 403 Forbidden Nagios

Sponsored Links
You may get this error after installing nagios
HTTP WARNING: HTTP/1.1 403 Forbidden
This is because there is no index.html file on the document root of Apache.

#cd /var/www/html          (if you installed using yum)
#touch index.html
if you want you can write something in it
#echo "Nagios Server" >> /var/www/html/index.html

Now restart the services
#service httpd restart
#service nagios restart

it must be solved within minutes.
Sponsored Links

1 comment:

  1. Another reason maybe because the php package isn't installed. This was my issue.

    The /var/www/html/index.html will show up under http://nagiosip/
    but I was getting forbidden on the http://nagiosip/nagios/ page.

    yum install php did the trick.
    Plus you'll need:
    yum -y install gd
    yum -y install gd-devel --nogpgcheck

    ReplyDelete

Be nice. That's all.