Enable Host Headers On An SSL/HTTPS Site

The other day we came across an issue where a user inadvertently inserted a “https” in the URL of a site.  The resulting page that was displayed was the Central Administration site.

The only site that is secured with SSL on our servers is the Central Admin site.  The Central Admin site also has a host header.  So, I thought that all traffic on port 443 would require the correct host header for Central Admin to respond.

I was wrong.

I was able to find a script on Microsoft TechNet that will enable host headers for SSL sites.  Run the following from the commandline:

cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"

Where <host header> is the host header for the Web site and <site identifier> is the site’s unique identifier.

You will find the adsutil.vbs file in several places but you should probably use the one located at C:\Inetpub\AdminScripts.

IIS 6.0

IIS 7.0

Related Posts with Thumbnails
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

3 comments

  1. Beranda Jiwa says:

    hi friends ………….
    This is my first visit on the blog / site for you, wow ….. your blog was incredible, I am happy to be in your blog. Xchange will you link with me, if you are willing, please let me know. I’ll input your link too. I hope our friendship can be forever and maybe next i’ll found something to make me rich about knowledge. I’ll see you in the new article. ok

  2. yoyo says:

    visiting you and drop EC.

    great post.


Trackbacks / Pingbacks

  1. Host Header On SSL Sites | SharePoint Geek

Leave a Reply