Setting up SSL Host Headers on IIS 7
- Obtain an SSL certificate
and install it into IIS 7. For step-by-step instructions on how to do
this, see Installing
an SSL Certificate in Windows Server 2008 (IIS 7.0).
- Once the certificate is
installed into IIS, bind it to the first site on the IP address.
- Open the command prompt by clicking the start menu
and typing “cmd” and hitting enter.
- Navigate to C:\Windows\System32\Inetsrv\ by typing “cd
C:\Windows\System32\Inetsrv\” on the command line.
- In the Inetsrv folder, run
the following command for each of the other websites on
the IP address that need to use the certificate (copy both lines):
appcmd set site /site.name:"
<IISSiteName>" /+bindings.[protocol='https',bindingInformation='*:443:
<hostHeaderValue>']
Replace <IISSiteName> with the name of the IIS site and <hostHeaderValue> with the host header for that site (site1.mydomain.com)
- Test each website in a
browser.
It should bring up the correct page and show the lock icon without any
errors. If it brings up the web page of the first IIS site, then SSL Host
Headers haven’t been set up correctly.
Referred Site:
SSL certificates
on Sites with Host Headers
No comments:
Post a Comment