I use mod_rewrite to redirect all http traffic to https.

#############################
# Mod rewrite
#############################

# rewrite environment
RewriteEngine on
RewriteLog /www/apache/logs/https_rewrite_log
RewriteLogLevel 1

# redirect http to https
# If you don't try to access https, then redirect to https
RewriteCond %{SERVER_PORT}      !^443$
RewriteRule ^/(.*)              https://%{SERVER_NAME}/$1 [L,R]

Scott


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Harald Falkenberg
Sent: Monday, February 05, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: Automatic change from http to https when password is required


Hi, 

is there a possibility to switch automatically from http to https as soon
as a password is required to access a web page? The setup for the http and
https server is identical.

For any hints thank you in advance
        Harald
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to