Page 3 of 3

Re: SSL Redirection 5.2.3

Posted: Mon Mar 14, 2016 11:01 pm
by Box293
Willem,
I've just been updating the SSL documentation for XI, it should be released in a day or two.

In relation to this:
WillemDH wrote:the following works:

http://naglog.domain will be redirected to https://naglog.domain/nagioslogserver/login?redirect=

But this will generate cert error:

http://naglog will be redirected to https://naglog/nagioslogserver/login?redirect=
Based on defining these settings in httpd.conf:
mikew wrote:###########################################
Edit /etc/httpd/conf/httpd.conf
###########################################
Place this text at the end of the file.

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
You can simply change the RewriteRule to

Code: Select all

RewriteRule (.*) https://naglog.domain%{REQUEST_URI}
And it will force the users to the correct dns name so the browser does not complain about the certificate.

I've made a note about this in the documentation.