IIS7 SSL Host Headers

7 Oct

If you want to use multiple SSL sites on the same IP in IIS7 then you will need to hack it a little. It’s pretty straight forward though:

  1. Navigate to the Inetsrv folder: Cd “C:\Windows\System32\Inetsrv\”
  2. Run this command: appcmd set site /site.name:”MySiteName” /+bindings.[protocol=’https’,bindingInformation=’*:443:site.host.name’]

Replace MySiteName with the name that is used in IIS7 and replace site.host.name with the host header that you wish to use.

It’s also worth noting that if you add a * to a wildcard certificate friendly name (“*.domain.com wildcard certificate” for example), then IIS will allow you to edit the host header via the GUI.