【发布时间】:2012-04-24 12:53:57
【问题描述】:
我已关注scot's article,了解如何分别为 http 和 https 启用默认端口(80 和 443)。我已经按照每个步骤进行操作,最后 IIS 快速系统托盘向我显示该站点正在以下 url 上运行
我唯一不同的是使用netsh>advfirewall>firewall 上下文,因为它告诉我netsh firewall 已被弃用。我使用以下命令允许端口 80 通过防火墙
netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80
这里是 IIS Express 的 applicationhost.config 文件中的相关站点部分
<site name="SSLTest" id="4">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="G:\Adeel\SSLTest\SSLTest" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51518:localhost" />
<binding protocol="https" bindingInformation="*:44301:localhost" />
<binding protocol="http" bindingInformation="*:80:mhlabs" />
<binding protocol="https" bindingInformation="*:443:mhlabs" />
</bindings>
</site>
编辑: 问题是当我浏览到 http:/mhlabs 或 https:/mhlabs 时它不起作用。我找不到浏览器的页面。我怎样才能解决这个问题。
Edit2: 好的,作为第一步,我想忘记 ssl,只需在端口 80 上为 test-one 保留一个 url 并在此运行我的网站网址。想到的逻辑步骤是我使用netsh http add urlacl url=http://test-one:80/ user=everyone 保留一个url,并将这个条目添加到applicationhost.config 文件的绑定部分。我还允许端口 80 通过防火墙,但整个事情似乎对我不起作用。有什么想法吗?
【问题讨论】:
-
我已经关闭了防火墙,但仍然无法通过友好的 URL 访问站点,例如
http://mhlabs和https://mhlabs
标签: asp.net visual-studio-2010 iis ssl iis-express