Need Server alias to work with SSL cert for Nagios XI
Posted: Tue Jul 11, 2017 3:12 pm
I am using Nagios XI 5.4.4 on a Redhat 7 server.
I used the excellent instructions on https://assets.nagios.com/downloads/nag ... s%20XI.pdf to configure an SSL certificate for the Nagios XI server.
When I use: using the server's hostname it works with no issues.
I would like to be able to configure a server alias I have in DNS to use the same SSL certificate, but so far I am getting the "Your connection is not secure" as is shown on
https://support.nagios.com/kb/article.php?id=598.
The bottom of my httpd.conf file has the following:
The bottom of my ssl.conf file has the following:
I am using Apache version 2.4.6. Assuming the server alias in DNS is in a different domain, let's call it diffdomain.otherdomain.com, what does my edit to the httpd.conf or ssl.conf file need to be ?
I realize this is not strictly a Nagios issue, but I would appreciate any assistance in getting this going. I also realize there are steps in the browser where a user may be able to override this issue, but I would like to avoid that all together if possible. Additionally, if I can get the alias to work, I will use it instead of the actual hostname in the nrds.cfg files on the client servers being monitored. That way in the future if I change out servers, I can just migrate the server alias to the new server and then import the monitoring without having to change nrds.cfg files on over 1,000 client servers.
I used the excellent instructions on https://assets.nagios.com/downloads/nag ... s%20XI.pdf to configure an SSL certificate for the Nagios XI server.
When I use:
Code: Select all
https://thisismyserver.domain.comI would like to be able to configure a server alias I have in DNS to use the same SSL certificate, but so far I am getting the "Your connection is not secure" as is shown on
https://support.nagios.com/kb/article.php?id=598.
The bottom of my httpd.conf file has the following:
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
I realize this is not strictly a Nagios issue, but I would appreciate any assistance in getting this going. I also realize there are steps in the browser where a user may be able to override this issue, but I would like to avoid that all together if possible. Additionally, if I can get the alias to work, I will use it instead of the actual hostname in the nrds.cfg files on the client servers being monitored. That way in the future if I change out servers, I can just migrate the server alias to the new server and then import the monitoring without having to change nrds.cfg files on over 1,000 client servers.