Recently i have installed nagios core v4.3.4 on a centos server ( Centos 6.9 , 5GB RAM , 3 core ). The installation works perfectly fine when i launch from the direct public ip (no errors).
But when i put it behind a separate nginx and launch it using the domain name , i am getting errors as per the screenshot below. Below are my httpd.conf for nagios...really not sure how to fix this.
seeking your advice. Thanks in advance.
#httpd conf for nagios
Code: Select all
[root@m246nagios etc]# grep -v "#" /etc/httpd/conf.d/nagios.conf
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
# nagios home dir
Code: Select all
/usr/local/nagios/etc
Code: Select all
/usr/local/nagios/sbin/status.cgi