Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
So I installed Nagios core 4.1.1 and it was working fine until I installed the SSL cert. Everything seems working fine and I got the "SECURE" word with padlock sign in front of my website after cert got installed. When I try to open nagios url, it even ask me for user/pass. Once I enter the credentails, I don't get the web interface except just white screen.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://10.10.10.10/nagios/">here</a>.</p>
</body></html>
[Thu Jan 25 04:22:07.658402 2018] [ssl:warn] [pid 32063] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 04:22:07.696284 2018] [ssl:warn] [pid 32063] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 04:55:23.770667 2018] [ssl:warn] [pid 32524] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 04:55:23.810044 2018] [ssl:warn] [pid 32524] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 04:57:56.076135 2018] [ssl:warn] [pid 32592] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 04:57:56.113848 2018] [ssl:warn] [pid 32592] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:22:43.474198 2018] [ssl:warn] [pid 451] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:22:43.514957 2018] [ssl:warn] [pid 451] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:35:47.355865 2018] [ssl:warn] [pid 621] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:35:47.392811 2018] [ssl:warn] [pid 621] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:42:32.014292 2018] [ssl:warn] [pid 689] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:42:32.051316 2018] [ssl:warn] [pid 689] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:55:15.530718 2018] [ssl:warn] [pid 818] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:55:15.568080 2018] [ssl:warn] [pid 818] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 05:55:26.278077 2018] [authz_core:error] [pid 823] [client 70.113.16.114:65317] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 05:55:33.864310 2018] [authz_core:error] [pid 820] [client 70.113.16.114:65320] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 05:59:06.922378 2018] [authz_core:error] [pid 872] [client 70.113.16.114:49257] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 06:06:44.644208 2018] [authz_core:error] [pid 821] [client 70.113.16.114:49781] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 06:06:47.570040 2018] [authz_core:error] [pid 821] [client 70.113.16.114:49781] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 06:06:51.335476 2018] [authz_core:error] [pid 821] [client 70.113.16.114:49781] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 06:08:18.557294 2018] [authz_core:error] [pid 819] [client 70.113.16.114:49795] AH01630: client denied by server configuration: /usr/local/nagios/share/
[Thu Jan 25 06:08:36.650535 2018] [ssl:warn] [pid 1010] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 06:08:36.687393 2018] [ssl:warn] [pid 1010] AH01909: RSA certificate configured for ::1:443 does NOT include an ID which matches the server name
[Thu Jan 25 06:29:08.931076 2018] [ssl:warn] [pid 1148] AH01909: RSA certificate configured for DJ-MON:443 does NOT include an ID which matches the server name
[Thu Jan 25 06:29:08.968540 2018] [ssl:warn] [pid 1148] AH01909: RSA certificate configured for DJ-MON:443 does NOT include an ID which matches the server name
[Thu Jan 25 06:41:41.905200 2018] [ssl:warn] [pid 1227] AH01909: RSA certificate configured for DJ-MON:443 does NOT include an ID which matches the server name
[Thu Jan 25 06:41:41.940973 2018] [ssl:warn] [pid 1227] AH01909: RSA certificate configured for DJ-MON:443 does NOT include an ID which matches the server name
Assuming your certificate has a CN, whatever the CN is on your certificate should match your Apache config's ServerName directive.
If none of that solves the issue, we'd need to see the relevant Apache configurations to offer additional advice.
I am still not able to get the nagios web page. I made sure the cert CN name match with ServerName in the httpd.conf. I have attached conf and conf.d file along with logs
Looking back at your original post after reviewing the configs, I was wrong. A 301 is an expected response on the /nagios path regardless of SSL configuration:
@mcapra
Initially I tried official doc for configuring HTTPS for Nagios Core, but it didn't work out. Then I tried Nagios XI whcih also didn't work out. I have attached a picture of what I am seeing/getting when try to open the nagios web.
I am able to open the url that you post in the last messages but still not able to open https://www.example.com/nagios.
check my attachment, I tried to break the web link that you sent me to see from where I start getting the nagios page