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.