This is an extension for Visual Studio Code that the current folder opened in VS Code can be run as a website using IIS Express
@dependabot, @dependabot[bot] and @warrenbuckley
@dependabot, @dependabot[bot] and @warrenbuckley
@dependabot, @dependabot[bot] and @warrenbuckley
@dependabot, @dependabot[bot] and @warrenbuckley
@dependabot, @dependabot-preview, @dependabot-preview[bot], @dependabot[bot] and @warrenbuckley
.vscode/iisexpress.json
now supports a new property protocol
which is an optional property & allows you to set the protocol to either http
or https
By default this is set to http
If you do use https
then IIS Express expects the port number to be within a range of 44300 - 44399ApplicationHost.config
allowing for common changes for all sites running IIS Express. This allows support for using PHP for example.If you wish to use PHP then you will need to install PHP for Windows and then use the following commands in the console
NOTE: This alternatively may be \Program Files (x86)\IIS Express\
cd "c:\Program files\IIS Express\"
NOTE: The path to php-cgi.exe
may be different for you so update the two commands below.
appcmd set config /section:system.webServer/fastCGI /+[fullPath='"C:\Program Files (x86)\P HP\php-cgi.exe"']
appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='"C:\Program Files (x86)\PHP\php-cgi.exe"',resourceType='Unspecified']
appcmd set config /section:system.webServer/defaultDocument /+"files.[value='index.php']"