- Open %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config
- Search for "virtualDirectory".
- Append
<binding protocol="http" bindingInformation="*:<port>:dev.example.com" />to the bindings section. - In an admin terminal, run
netsh http add urlacl url=http://dev.example.com:<port>/ user=everyone - Open %SystemRoot%\system32\drivers\etc\hosts as an admin.
- Append
127.0.0.1 dev.example.comto the hosts file.
Created
October 29, 2013 18:04
-
-
Save smockle/7219649 to your computer and use it in GitHub Desktop.
Use custom domains in IIS.
Author
Visual Studio 2015 places applicationhost.config in a .vs folder in the project.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In IE, protected mode must be off for the hosts file to be respected.