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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RBraatAuthor Commented:
I created a new site3 and bould it again.
Great, thank you, this works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.