I searched for previous threads on this topic, but the most recent that I found was from October 2011, so I hope I don't ruffle too many feathers by starting a new thread instead of resurrecting an old one.
My ultimate goal is to use SSL and force https traffic, and use mod_rewrite to make the URL appear as "https://nagios.ourdomain.com" instead of "https://nagios.ourdomain.com/nagioxi". I've installed Nagios XI 2012R1.6 on a fresh install of RHEL 6.2 on x86_64.
To that end, I have successfully configured /etc/httpd/conf.d/ssl.conf to point to our cert and chain file. I added the following three lines in /etc/httpd/conf/http.conf within the <Directory "/var/www/html"> stanza:
Code: Select all
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://nagios.stsci.edu/$1 [R,L]
I can run the "nagios -v nagios.cfg" command from the command line and see that it verifies cleanly. This is still a relatively fresh install with only the localhost configured after all. My research in these forums and elsewhere on the web seems to indicate that my rewrite rule may be gumming up the works somehow. What can I do to get these configuration changes to succeed through the web UI?
Please let me know if I can provide any additional information.
Thanks in advance.