all groups > iis security > may 2006 >
You're in the

iis security

group:

One Domain with 2 websites and 2 SSL Certs


One Domain with 2 websites and 2 SSL Certs Word problems
5/21/2006 6:25:01 PM
iis security:
Greetings All,

I am running a Win2003 SBS Standard server. I have 2 websites running on the
server in the same domain. I have added a second IP to the server and
assigned each website an IP address. I have also created separate SSL certs
for each website and enabled port 443 for both. I have a Linksys router which
I enabled port forwarding for port 443.

The problem I am having is that when I go to https://website1.mydomain.com
I get the SSL cert for the 2nd website (and that website). If I go to
https://website2.mydomain.com I get SSL cert for the 2nd website and that
website.

How do I configure things so that when that when I go to site1 I get site1
with cert1 and when I go to site2 I cert 2.

Also how would I go about redirecting a url request for
http://website1.mydomain.com to https://website1.mydomain.com automatically?

Thanks in advance for your help.
Re: One Domain with 2 websites and 2 SSL Certs Ken Schaefer
5/22/2006 12:00:00 AM
What IP address do website1.mydomain.com and website2.mydomain.com point to?
I suspect that they both point to the same address: the public IP address
assigned to your Linksys NAT device.

Then, how does your Linksys NAT device know that certain requests need to be
forwarded to internal IP address number 1, and other requests need to be
forwarded to internal IP address number 2? It doesn't, unless you have two
public IP addresses, and port forward each one to the requisite internal IP
address.


Cheers
Ken


[quoted text, click to view]

Re: One Domain with 2 websites and 2 SSL Certs Word problems
5/22/2006 5:17:02 AM
Ken,
Thank you for your response. You are correct. I have 2 internal IP's and 1
Public IP. So If I undertand you correctly there's no way around it other
than getting a second public IP?

Thanks again.

[quoted text, click to view]
Re: One Domain with 2 websites and 2 SSL Certs Funkadyleik Spynwhanker
5/22/2006 9:06:49 AM

[quoted text, click to view]

Correct. None.

Re: One Domain with 2 websites and 2 SSL Certs Ken Schaefer
5/23/2006 12:00:00 AM
You can get a wild card certificate that matches *.mydomain.com (these tend
to be quite expensive though).

Or you can get second public IP address

Or you have port forward different ports, eg https://publicIPaddress ->
internal IP 1, and https://publicIPaddress:444 -> internal IP 2

Cheers
Ken

[quoted text, click to view]

Re: One Domain with 2 websites and 2 SSL Certs Rich Raffenetti
5/29/2006 8:19:32 AM
Your request for http://website1.mydomain.com will generate a 403.4 error.
Replace the default error htm file for your site with a custom error htm
file that redirects to https://website1.mydomain.com. The following should
work ok for you. The error files are in %windir%\help\iishelp\common

<html>
<head>
<meta http-equiv="refresh" content="0;url=https://website1.mydomain.com">
</head>
</html>


[quoted text, click to view]

AddThis Social Bookmark Button