httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joost de Heer" <>
Subject [users@httpd] Re: Multiple SSL virtual servers on the same IP address and port number
Date Fri, 07 Jul 2006 07:47:04 GMT
James Jacob wrote:
>   Hi,
>   I'm using Apache HTTP Server (version 2.0.55) for my project. I'm having
> three SSL sites which I run on the same IPaddress, but with different
> port numbers.
>   For example say for the ports 443, 444 & 445.
>   The sites I have can be for example,
>   1)
>   2)
>   3)
>   I have also set re-direction such that if the user types a  http:// site
> it gets redirected to the corresponding https:// site with the required
> port number. However, the issue comes when the user types https://
> without the required port number, since it goes to the default https://
> site.
>   Is there any way to add more SSL virtual server sites with the same IP
> address and Port ?
>   If the user types then it should get re-directed to
> . Rightnow it shows since that site
> is given with the default port. Any script or something which can do the
> trick could be useful.

The following in your 443 SSL host might work:

RewriteEngine On

RewriteCond %{HTTP_HOST} two\.xyz\.com
RewriteRule /(.*)$1 [R=301]
RewriteCond %{HTTP_HOST} three\.xyz\.com
RewriteRule /(.*)$1 [R=301]

This will, however, not stop the main problem: You'll get the certificate
of if you go to, which results in a
security message.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message