Skip to content

Instantly share code, notes, and snippets.

@litodam
Created July 16, 2012 21:30
Show Gist options
  • Save litodam/3125187 to your computer and use it in GitHub Desktop.
Save litodam/3125187 to your computer and use it in GitHub Desktop.
Configuring IIS Express site with a specific port for SSL binding
@echo off
setlocal
CD /d "%~dp0"
SET SiteName=%1
SET WebSitePath=%2
SET SSLPort=%3
"%ProgramFiles%\IIS Express\appcmd" add site /name:"%SiteName%" /physicalPath:"%WebSitePath%" /bindings:https/*:%SSLPort%:localhost
"%ProgramFiles%\IIS Express\appcmd" set app "%SiteName%/" /applicationPool:"Clr4IntegratedAppPool"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment