HowTo redirect HTTP to HTTPS on the same httpd?

Posted by mosg on Server Fault See other posts from Server Fault or by mosg
Published on 2010-05-25T14:28:53Z Indexed on 2010/05/25 14:33 UTC
Read the original article Hit count: 346

Filed under:
|
|

Hi.

Here is what I have got:

  • CentOS 5.4 (32-bit)
  • installed Apache httpd (Server version: Apache/2.2.11 (Unix))
  • mod_rewrite already presents

Question: how to redirect simple http://site.com to https://site.com not using VirtualHost defines?

PS: tried to find in later answers on SF, but doesn't find nice solution.

Thanks.

© Server Fault or respective owner

Related posts about centos

Related posts about redirect