[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] redirecting everything to ssl
From:       Joshua Slive <jslive () gmail ! com>
Date:       2005-11-30 23:55:36
Message-ID: e498c1660511301555j522d325bp4095fa8e080e2f3b () mail ! gmail ! com
[Download RAW message or body]

On 11/30/05, Rob Benton <rob.benton@conwaycorp.net> wrote:
> I've got a site on my intranet running with mod_ssl.  This site used to
> run over plain http://.  I'd like to redirect everyone trying to access
> the old address to the new address via https://.
>
> I tried just:
> Redirect permanent http://site https://site
>
> but I get a 400 Bad Request error.  I also looked at mod_rewrite but
> wasn't sure if it would work for this.  What is the
> simplest/best/easiest way to do this?

You can do it with mod_rewrite, or you can do it with something like
<VirtualHost _default_:80>
Redirect permanent / https://site/
</VirtualHost>

(Assuming you also have a vhost setup for your ssl site.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic