Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Last active November 24, 2020 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ainsofs/49d25af0c92dc181e703ae3ac4438431 to your computer and use it in GitHub Desktop.
Save ainsofs/49d25af0c92dc181e703ae3ac4438431 to your computer and use it in GitHub Desktop.
Use this snippet to add https to an IIS7 site
appcmd set site /site.name:"<IISSiteName>" /+bindings.[protocol='https',bindingInformation='*:443:<hostHeaderValue>']
# https://www.sslshopper.com/article-ssl-host-headers-in-iis-7.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment