httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] rewrite to https website
Date Tue, 24 Apr 2012 11:31:31 GMT
On Tue, Apr 24, 2012 at 12:24 PM, TianJing <jingtian.seu217@gmail.com> wrote:
> Hi all,
>
> I have a question on apache rewrite, I have a https website: https://www.a.com
>
> I want add another url(http://www.b.com),and this url will be forward
> to https://www.b.com
>
> I using the rewite rules, but I seem doesn't work.
>
> any suggestions?
>

You need to give more information. You haven't said anything useful.

What did you try? Show your config
What happened?

In a general sense, what you are trying to do is easy. You've gone
from one SSL vhost to two SSL vhosts and a non SSL vhost that
redirects to one of the SSL vhosts:

<VirtualHost 12.34.56.78:443>
  ServerName a.com
  # a.com's SSL settings, etc
</VirtualHost>

<VirtualHost 12.34.56.79:443>
  ServerName b.com
  # b.com's SSL settings, etc
</VirtualHost>

<VirtualHost *:80>
  ServerName b.com
  Redirect / https://b.com/
</VirtualHost>

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message