On Tue, Sep 12, 2000, Juhnke, Cora wrote:
> i have a problem with SSL. I`m using Apache 1.3.9 and mod_ssl 2.4.7 . The
> Problem is that I can open my sites with or without ssl. I want only to
> open them with ssl.
Sure, if you configured it this way, you can access your site both ways. If
you only want HTTPS, then place an SSLRequireSSL directive into your configs.
If you want to be more smart, then add instead:
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]
This then will redirect from HTTP to HTTPS automatically.
> To open the sites with ssl, I have to write https in front of my sites
> name. That can`t be right, or?
Errr... sure, this is right. HTTPS uses the different URL scheme "https"
instead of "http".
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]