如何在VS2015中为IIS Express启用SSL [英] How to enable SSL for IIS Express in VS2015
本文介绍了如何在VS2015中为IIS Express启用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我觉得我必须缺少一些简单的东西,但是有人知道如何在使用ASPNET5 Web项目时为IIS Express启用SSL吗? 项目属性调试"屏幕仅显示端口,而不显示URL(经典"网络项目仍允许您在URL中使用特定的https)
I feel like I must be missing something easy, but does anyone know how to enable SSL for IIS Express when using an ASPNET5 web project? The Project Properties Debug screen only shows a port, not a URL ("classic" web projects still allow you to specific https in the url)
推荐答案
在[SOLUTION_DIR]\.vs\config
以网站"部分中的示例为例:
for exemple in the sites section :
<site name="YOUR SITE NAME" id="1">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="YOUR SITE PATH" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
</bindings>
</site>
这篇关于如何在VS2015中为IIS Express启用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文