Set up multiple SSL sites in IIS 7

Posted: October 7, 2011 in Web Server
Tags: , , , ,

There are three ways to achieve multiple SSL or non-SSL sites.

  • Port binding: use a different port for each site. Not practical in real world.
  • IP binding: use different IP for different site.
  • Domain name binding. use different domain name for different site.

Microsoft disabled the UI option to bind domain name for SSL site. Fortunately, we can still do it in the command line.

Run the below script in C:\inetpub\AdminScripts, where adsutil.vbs is located at.

cscript adsutil.vbs set /w3svc/<Site ID>/SecureBindings ""

You can check the <Site ID> in IIS Manager, sites list.

You can see the binding in ISS Manager now.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s