开发者

How can I get two SSL certs to work on a two domain, shared IP configuration

I have two web site that are 99% similar. They share all of the same pages except the difference being that the logos change, a few of the links change, and the products that show up on either web site are flagged to show up on either or, or both. They use the same database.

I have written a utility method that essentially injects a where clause into any database access code I write throughout the app to determine which products to display depending on the current URL.

Problem: Website B gives the user a warning message that the site they are trying to go to is in fact We开发者_StackOverflow社区bsite A. I've read that the SSL cert needs a distinct IP.

Right now how I have everything set up is very clean on a maintenance perspective. I can update files in one place. Any suggestions on how to make the SSL behave, or am I looking at seperate IP's for the hosting(I really don't want to have to do this)?

If the latter, what do you suggest?

Site runs ASP.NET 4.0. Precompiled DLL.


UPDATE: Thanks to @GregS comment

If the sites share the same domain you can use a wildcard certificate

  • site1 - site1.somedomain.com
  • site2 - site2.somedomain.com

Otherwise you will need to get a UCC (United communications certificate) that will be for both domains.

You will need to configure IIS 7 from the command line because the GUI doesn't support setting different host headers for the same certificate. This tutorial shows how it can be done.


I setup another website in IIS that points to the same files as the first web site, got another SSL cert for the new site.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜