Created
July 16, 2012 21:30
-
-
Save litodam/3125187 to your computer and use it in GitHub Desktop.
Configuring IIS Express site with a specific port for SSL binding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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