httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike VanHorn <michael.vanh...@wright.edu>
Subject [users@httpd] Redirecting to secure server
Date Fri, 18 Aug 2006 16:17:15 GMT

I think is probably easy, and I'm just not getting it.

Apache 2.2.2 without SSL running on port 80 and a VirtualHost using SSL on
port 443. I have a directory on the unsecure side, /path/to/directory/. I
need to redirect unsecure requests for that to the secure, that is redirect

http://www.mydoman.com/path/to/directory/

to 

https://www.mydomain.com/path/to/directory/

So, I put the following into httpd.conf:

Redirect /path/to/directory/ https://www.mydomain.com/path/to/directory/

Apache then start okay, but the browser gives an error that the redirect is
incorrect. I think it's taking the redirect command on the unsecure side,
issuing it, and then when the browser requests the https:// URL, the
redirect again has an affect.

There must be a "correct" way to do this, and I'm just not getting it, so
any help would be greatly appreciated.

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator 
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanhorn@wright.edu
http://www.cs.wright.edu/~mvanhorn/




---------------------------------------------------------------------
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


Mime
View raw message