iis express custom hostname Posted on 2017-11-28 使用vs 2017 iisexpress 调试web项目是如果项目绑定某个域名这时候就需要编辑1$(solutionDir)\.vs\config\applicationhost.config 找到文件中site 节点12345678<site name=”MyWebApp” id=”2”> <application path=”/“ applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path="/" physicalPath="rpoject root path" /> </application> <bindings> <binding protocol="http" bindingInformation="*:12345:customerhostname" /> </bindings></site> 然后配置项目属性 更改project url .