Forwarding 80 to 443 on Nagios woes

Posted by Ethabelle on Server Fault See other posts from Server Fault or by Ethabelle
Published on 2012-06-28T20:54:49Z Indexed on 2012/06/28 21:18 UTC
Read the original article Hit count: 251

Filed under:
|
|
|
|

I perhaps just need some extra insight because I don't see where I'm going wrong. I used an SSL Cert to secure our nagios server. We want to specifically require all traffic over nagios (like 2 users, lol) to use SSL.

So I thought, oh, mod_rewrite + Rewrite Rule in .htaccess, right?

So I went into the DocumentRoot and did a vi .htaccess (one didn't already exist) and then I put in the following rule;

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://our.server.org/$1 [R,L]

This does absolutely nothing. Does nada.

Whhhyy..

Note: AllowOverride all in httpd.conf is on. Also, I verified that the module is not uncommented out ... but note, I couldn't find the mod_rewrite module installed so I copied it over from another server and placed it in modules/mod_rewrite.so . It was weird because it was enabled in the httpd.conf file, but then didn't exist in modules ...

I'm a baddie :(

© Server Fault or respective owner

Related posts about ssl

Related posts about .htaccess