Gus,
Try adding the following to httpd.conf:
SSLEngine off
<VirtualHost 123.123.123.123:80>
# standard non-SSL config directives go here
</VirtualHost>
<VirtualHost 123.123.123.123:443>
# This vhost makes sure they use "secure.hostname.org" for SSL
Redirect / https://secure.hostname.org/
</VirtualHost>
<VirtualHost secure.hostname.org:443>
# This is your SSL vhost
SSLEngine on
SSLRequireSSL
# other conf directives go below
</VirtualHost>
<VirtualHost secure.hostname.org:80>
# This vhost makes sure they use "www.hostname.org" for non-SSL
Redirect / http://www.hostname.org/
</VirtualHost>
Where 123.123.123.123 is your IP address. I just made all that up, so it may
or may not work :)
Cheers,
Simon Garner
----- Original Message -----
From: Eric Gus <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 1999 2:21 PM
Subject: forcing secure via name (off topic?)
> Server Version: Apache/1.3.6 (Unix) mod_perl/1.19 PHP/3.0.7 mod_ssl/2.2.8
> OpenSSL/0.9.2b
>
> works fine as http and as https.
>
> How can I force ssl when a user uses the url http://secure.hostname.org
> (redirect/rewrite to https://secure.hostname.org) and deny ssl for
> http(s)://www.hostname.org
>
> I'd like to do this using a single ip.
>
> I have 2 other virtuals (ip based), 1 of which will work under 80 or 443
> (as wanted)
>
> Do I have to do any dns entry changes?
>
> the server currently responds as hostname.org and www.hostname.org
>
> Gus
>
>
>
>
> ______________________________________________________________________
> 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]