Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing SSL

Status
Not open for further replies.
Nov 26, 2001
30
US
Hey All,

I've got Apache 2.0.46/Win32 running with a re-direct for all http:// requests to go to https:// (we are using an ssl accelerator to handle all of the encryption/decryption). Re-direct works fine, but I can still simply replace the https:// with http:// and then I get non-secure pages.

I'd like to have all http:// requests denied and then re-directed through a secure connection. Any help is greatly appreciated.


Wade
 
Have you tried these directives?

<VirtualHost *:80>
ServerName site.domain.com

## These are for proxy to SSL
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) [L,R,NC]

</VirtualHost>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top