I recently updated the Debian Wheezy server where I was using Nagios Core 4.0.8. After upgrading to Debian Jessie with Apache 2.4.10 I'm having some problems with permissions. When I try access to "Services" and "Hosts" I get the following message:
Code: Select all
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
Code: Select all
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/nagios.crt
SSLCertificateKeyFile /etc/apache2/ssl/nagios.key
Serveradmin webmaster@ws1.freesoftware
Servername nagios.freesoftware
ErrorLog "|/usr/bin/cronolog /space/log/ws1/%Y%m/%Y%m%d_nagios.freesoftware_error.log"
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog "|/usr/bin/cronolog /space/log/ws1/%Y%m/%Y%m%d_nagios.freesoftware_access.log" combined
ServerSignature On
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
### DGB - 20150507 ###
#Order allow,deny
#Allow from all
Require all granted
### DGB - 20150507 ###
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
### DGB - 20150507 ###
#Order allow,deny
#Allow from all
Require all granted
### DGB - 20150507 ###
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
</Virtualhost>
Thanks in advance.
Best regards,
Daniel