VirtualHost your_ip_here:80
ServerName www.foo.com
[ ... ]
RewriteEngine On
RewriteRule ^/(.*)$ https://www1.foo.com/$1
[ ...]
/VirtualHost
VirtualHost your_ip_here:443
ServerAlias www1.foo.com
[ ... ]
/VirtualHost
HTH
Gregor
--
what's puzzlin' you, is the nature of my game
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 16, 2007 5:47 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Re: https redirection
Thanks Eric,
I still can't get this thing to work. I think the problem is I still
want
all http://www.foo.com to stay on www, but I want https
Thanks Eric,
I still can't get this thing to work. I think the problem is I still want
all http://www.foo.com to stay on www, but I want https://www.foo.com to go
to https://www2.foo.com
Any suggestions or example you can show me?
Guy
Eric DuToit writes:
Mod re-write is your friend:
Have you tried looking at mod_alias and using the 'redirect' directive
inside your https://www. virtual host?
Please respond to users@httpd.apache.org
To: users@httpd.apache.org
cc: (bcc: Dan Mitton/YD/RWDOE)
Subject:[EMAIL PROTECTED] Re: https redirection
LSN: Not Relevant