I am trying to install Nagios on a centos vm on Ec2 from yum.
When trying to restart httpd to get Nagios up I was hit with this bug form the http error log
Attempt to serve directory: /usr/share/nagios/html/
This is my nagios.conf
<VirtualHost *>
ServerName nagios.xx.com
ServerAlias nagios.xx.com
ScriptAlias /nagios/cgi-bin/ /usr/lib64/nagios/cgi-bin/
<Directory /usr/lib64/nagios/cgi-bin/>
Options ExecCGI
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Basic
AuthUserFile /etc/nagios/passwd
AuthName "nagios"
require valid-user
</Directory>
Alias / /usr/share/nagios/html/
<Directory /usr/share/nagios/html/>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
AuthName "nagios"
require valid-user
</Directory>
</VirtualHost>
This is the html directory perm
drwxr-xr-x 8 apache apache 4096 Jun 20 17:53 html
The parent directories have perms like this
nagios
drwxr-xr-x 3 root root 4096 Jun 20 17:53 nagios
share
drwxr-xr-x 103 root root 4096 Jun 20 17:53 share
usr
drwxr-xr-x 13 root root 4096 Feb 24 16:30 usr
Can someone help me out?