v1.0.0
- New:
.vscode/iisexpress.json
now supports a new propertyprotocol
which is an optional property & allows you to set the protocol to eitherhttp
orhttps
By default this is set tohttp
If you do usehttps
then IIS Express expects the port number to be within a range of 44300 - 44399 - New: Uses
ApplicationHost.config
allowing for common changes for all sites running IIS Express. This allows support for using PHP for example.
PHP Support
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']"