按照以下步骤为我的项目设置了localhost站点: https://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx
我的applicationhost.config如下所示:
<site name="ProjectName.Web" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\myUserName\Source\Repos\SolutionName\ProjectName.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51415:localhost" />
<binding protocol="https" bindingInformation="*:44342:localhost" />
<binding protocol="http" bindingInformation="*:80:myPC.myDomain.com" />
<binding protocol="https" bindingInformation="*:443:myPC.myDomain.com" />
</bindings>
</site>
我还审核了这篇文章:Why does SSL 443 fail to work in IIS Express for custom domains of Visual Studio web projects?
仍然得到这个:
无法访问此网站
连接已重置。
如何调试此问题?