ssl redirection fails after upgrade to XI 2012R2.2
Posted: Thu Jun 06, 2013 12:30 pm
Nagios XI 2012R2
Redhat 6.4 x64
Hello,
I just upgraded NagiosXI to 2012R2. I have redirection working so anytime somebody typed in http://'server'/nagiosxi they would get redirected to https and it worked before the upgrade. Now it doesn't and I can't seem to get it redirecting to https:
Here is a copy of the nagiosxi.conf file:
#NameVirtualHost *:443
<VirtualHost *:80> # Add this line
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory> # Add this line
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
</Directory>
</VirtualHost>
Alias /nagiosxi "/usr/local/nagiosxi/html"
My /etc/httpd/conf/httpd.conf file has the following at the end:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Redhat 6.4 x64
Hello,
I just upgraded NagiosXI to 2012R2. I have redirection working so anytime somebody typed in http://'server'/nagiosxi they would get redirected to https and it worked before the upgrade. Now it doesn't and I can't seem to get it redirecting to https:
Here is a copy of the nagiosxi.conf file:
#NameVirtualHost *:443
<VirtualHost *:80> # Add this line
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory> # Add this line
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
</Directory>
</VirtualHost>
Alias /nagiosxi "/usr/local/nagiosxi/html"
My /etc/httpd/conf/httpd.conf file has the following at the end:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]