« Previous Next »

Thread: How to host two ssl sites with different domain and different IP?

Last post 10-30-2009 10:37 AM by Lancelot6870. 20 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (21 items) 1 2 Next >

Sort Posts:

  • 10-14-2009, 11:44 PM

    • kpao2009
    • Not Ranked
    • Joined on 10-15-2009, 3:29 AM
    • Posts 8

    How to host two ssl sites with different domain and different IP?

    Suppose I have www.abc.com and www.def.com. Both two websites run 80 and 443 ports. And the websites use different ssl certificate.

    For 80 port, I can add host header for each website. But for SSL, it doesn't work. I have tried to use Metabase Explorer to add SecureBinding for each site. But something happend, sometimes I access https://www.abc.com. It will be redirected to https://www.def.com. Is it possible to do that?

     P.S. My IIS version is 6.0 and running on windows 2003 server

  • 10-15-2009, 12:50 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: How to host two ssl sites with different domain and different IP?

    For HTTP sites, you can use host headers to distinguise them if they bind to the same IP address and port 80.

    However, for HTTPS/SSL though you can bind them to the same IP address and port 443 on IIS side using host headers, you will meet certificate issue.

    Please check out our recommendation here. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/596b9108-b1a7-494d-885d-f8941b07554c.mspx?mfr=true

    A workaround is to bind the two sites to different IP addresses, but that requires networking related changes.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-15-2009, 1:05 AM In reply to

    • kpao2009
    • Not Ranked
    • Joined on 10-15-2009, 3:29 AM
    • Posts 8

    Re: How to host two ssl sites with different domain and different IP?

    I have already read this page before. But it still not work for me.

    May be I describe more clearly about my situation:

    I have two websites:

    www.abc.com (IP:202.175.10.10)

    www.def.com (IP:202.175.20.20)

    And those two websites have been installed two different ssl certificates. One is www.abc.com, another one is www.def.com. So, I'm not using wildcard certificate. and both two websites in different domains.


  • 10-15-2009, 1:11 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: How to host two ssl sites with different domain and different IP?

    OK, so you have already bind them to 202.175.10.10:443 and 202.175.20.20:443 separately. That eliminates a big roadblocker.

    Now we can download and install SSLDiag on to this server and check if it reports any errors on the certificates.

    x64 http://www.microsoft.com/downloads/details.aspx?familyid=1CBFB70E-F442-4BB2-940B-351C3A7D62CF&displaylang=en

    x86 http://www.microsoft.com/downloads/details.aspx?FamilyID=cabea1d0-5a10-41bc-83d4-06c814265282&DisplayLang=en

    If the misbehavior remains even if SSLDiag reports no issue, that means the problem does not originate from SSL settings.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-15-2009, 3:47 AM In reply to

    Re: How to host two ssl sites with different domain and different IP?

    kpao2009:

    I have two websites:

    www.abc.com (IP:202.175.10.10)

    www.def.com (IP:202.175.20.20)

    And those two websites have been installed two different ssl certificates. One is www.abc.com, another one is www.def.com. So, I'm not using wildcard certificate. and both two websites in different domains.

    If you have two different IPs and have bound the different certs to those, the SSL configuration looks good.

    What is the problem that you are facing? Can you provide more information on that?

    ~ Ganesh

  • 10-15-2009, 6:35 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: How to host two ssl sites with different domain and different IP?

  • 10-27-2009, 5:55 AM In reply to

    • kpao2009
    • Not Ranked
    • Joined on 10-15-2009, 3:29 AM
    • Posts 8

    Re: How to host two ssl sites with different domain and different IP?

    I have tried using SSLDiag. And there is a error message "#WARNING:Site 1 and 1588487336 have conflicting SecureBindings".

     

  • 10-27-2009, 10:30 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: How to host two ssl sites with different domain and different IP?

    ... so double-check each site configuration to make sure they are unique ...

  • 10-27-2009, 10:54 PM In reply to

    • kpao2009
    • Not Ranked
    • Joined on 10-15-2009, 3:29 AM
    • Posts 8

    Re: How to host two ssl sites with different domain and different IP?

     

    I have checked the configuration. the binding is correct and no duplication. The following is the screen

     site 1588487336:

     http://img30.imageshack.us/img30/1263/site2js.jpg

     http://img264.imageshack.us/img264/7763/site2conf.jpg

    site 1:

    http://img39.imageshack.us/img39/6889/site1r.jpg

     http://img248.imageshack.us/img248/6843/site1conf.jpg

     

    Anyway, both two websites use different certificates

  • 10-28-2009, 10:31 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: How to host two ssl sites with different domain and different IP?

    tomkmvp:

    You may also need to disable socket pooling.

    http://support.microsoft.com/kb/238131

    What about this?  I did not see your response.

  • 10-28-2009, 10:34 AM In reply to

    Re: How to host two ssl sites with different domain and different IP?

    Duplicate post

  • 10-28-2009, 10:36 AM In reply to

    Re: How to host two ssl sites with different domain and different IP?

    I reviewed the images that you posted. It seems there is problem with your site bindings.

    In IIS, on the site, go to properties>under website tab, you will see Advanced button, Click on that and ensure the sites are bound to specific IP address instead of "All unassigned" in multiple SSL identities.

    That should fix this issue.

    HTH.

    ~ Ganesh

  • 10-28-2009, 10:49 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: How to host two ssl sites with different domain and different IP?

    ganeshanekar:

    Click on that and ensure the sites are bound to specific IP address instead of "All unassigned" in multiple SSL identities.

    That should fix this issue.

    Yes that should fix it.

  • 10-28-2009, 9:33 PM In reply to

    • kpao2009
    • Not Ranked
    • Joined on 10-15-2009, 3:29 AM
    • Posts 8

    Re: How to host two ssl sites with different domain and different IP?

    I have tried disable the socket pooling. The problem was still happened. Anyway, I created the website named ASPNET in my website 1588487336. And access to that page. And the error occurred. The error message is  "Server cannot access application directory 'C:\inetpub\wwwroot\ASPNET\'. The directory does not exist or is not accessible because of security settings." . It's strange. Because the correct path is C:\Inetpub\wwwroot2\ASPNET\. "C:\Inetpub\wwwroot\" is the parent path of website 1.

     

  • 10-28-2009, 9:47 PM In reply to

    Re: How to host two ssl sites with different domain and different IP?

    Err is this SSL error ? it looks like path referencing error, you getting 404 ? what's the complete status code for the request?

    Will you able to start up both sites? I mean it binds to respective port 80 and 443?

     

    Cheers,
    Bernard Cheah
Page 1 of 2 (21 items) 1 2 Next >
Microsoft Communities