Re: Multiple website in single IP, host header and SSL problem



prof_martin wrote:

Hi,

I have websites hosted in one server, single IP address using host header in
IIS 6.0 (windows 2003 standard ed.)
For illustration, in IIS I created 4 websites for respective domain name
indentified on host header:

www.domain1.com
domain1.com
www.domain2.com
domain2.com

I installed SSL on website www.domain1.com
If I type https://www.domain1.com works fine.
If I type https://domain1.com should be OK, although promp security for
different site name

Problem is, if I type https://www.domain2.com or https://domain2.com, it
prompt security message and display www.domain1.com content.

Should be something wrong in my configuration.

You can only use host headers and SSL together on a single IP if you have a wildcard SSL certificate and all the host headers belong to the same common domain (that's on the SSL certificate).

For any other SSL scenario, you need one IP per SSL site.

The reason for the difficulty is that the host header in the request is *inside* the encrypted request, which must therefore be decrypted before the header can be read. But the request must be handed off to a website before it can be decrypted. ie it's a chicken and egg situation (you need the header to decide which site, but you need the site to get at the header).


--
Steve Foster [SBS MVP]
---------------------------------------
MVPs do not work for Microsoft. Please reply only to the newsgroups.
.



Relevant Pages

  • Re: Mutliple sites needing to communicate over SSL on one IIS server
    ... it is not a limitation of IIS. ... The request (including the ... webserver) to find out what the host header is. ... "HTTP 1.1 Host Headers Are Not Supported When You Use SSL" ...
    (microsoft.public.inetserver.iis)
  • Re: ISS problem
    ... It sounds like you are running Small Business Server. ... IIS will keep backup copies of its configuration (check in the IIS Manager ... Since they are independent websites, ... sure that both websites do NOT share the same IP, Port, and Host header. ...
    (microsoft.public.inetserver.iis)
  • Re: Multiple Sites running same code, w/SSL.
    ... This is a limitation in SSL, not IIS. ... Here is the problem -- Host header is a property of the HTTP request (it is ... the website and hence server certificate, is encrypted in the very thing ...
    (microsoft.public.inetserver.iis.security)
  • Re: Problems with Multiple Websites using Multiple IP Addresses
    ... I have my default IIS website running Outlook Web Access - 192.168.0.1 SSL ... > team.mydomain.ca as the host header. ...
    (microsoft.public.inetserver.iis)
  • Re: Mutliple sites needing to communicate over SSL on one IIS server
    ... Is there a reason IIS does not support ... host header differentiation with SSL port requests, ... >> When I go to an SSL secured page on the apps site, ...
    (microsoft.public.inetserver.iis)