How to connect to IIS6 SSL website with alias?

Hi,

On a Win2003, IIS6 server I have 2 websites running, say site1.domain.com and site2.domain.com. These names are listed in the properties of the site (port 80).
Both are only accessable over SSL. To achieve this I followed directions in http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/596b9108-b1a7-494d-885d-f8941b07554c.mspx?mfr=true.
I installed a certificate for multiple (3) names. These are:
site1.domain.com
site2.domain.com
site3.domain.com
As stated in mentioned link under "Configuring Server Bindings for SSL Host Headers" I've run the commands
C:\Inetpub\AdminScripts>cscript adsutil.vbs set /w3svc/<siteID>/SecureBindings ":443:site1.domain.com" and C:\Inetpub\AdminScripts>cscript adsutil.vbs set /w3svc/<siteID>/SecureBindings ":443:site2.domain.com". This achieves that both sites now also are accessable over SSL, port 443 is specified in the properties of the site. This cannot be achieved with the GUI.

So far so good. But now I want site2 to also be accassable as site3. So in the properties of site2 I specified site3.domain.com as an additional hostheader for port 80. After this I ran C:\Inetpub\AdminScripts>cscript adsutil.vbs set /w3svc/<siteID>/SecureBindings ":443:site3.domain.com".
For the first moments, site2 and site3 are accessable over SSL. After a while, only site3 is accessable.
When I run C:\Inetpub\AdminScripts>cscript adsutil.vbs set /w3svc/<siteID>/SecureBindings ":443:site2.domain.com" again, for a short time, both sites are accessable over SSL. After a while, only site 2 is accessable.
It seems that only the latest site I bound stays accessable.

Can anyone point me what I am doing wrong or how I can achieve my goal?
Regards, Rini
RBraatAsked:
Who is Participating?
 
WadskiIT DirectorCommented:
You can only have one certificate assigned per site instance.  What is happening is bot sites work until the caching expires then only site3 worked.

The quickest and simplest way is to get up a new website within IIS for site 3 and point it the same physical path as site2. Then you can have different certificates working for the different sites.
0
 
RBraatAuthor Commented:
I created a new site3 and bould it again.
Great, thank you, this works.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.