【发布时间】:2016-01-11 09:47:27
【问题描述】:
我在本地 IIS(版本 8)上有两个网站:
\Website1 (Binding: http:*:80:)
Index.html
\Website2 (http:*:80:anotherwebsite.com)
Index.html
有没有办法在本地浏览IIS网站Website2? 浏览 anotherwebsite.com 是错误的 - DNS 会将我指向“公共”anotherwebsite.com。浏览 localhost/anotherwebsite.com 也是错误的 - 这将浏览 Website1。
我无法更改主机文件 - 此更改必须快速且简单(用于部署心跳)。我也不想添加另一个绑定(可能的解决方案是将绑定 http:*:123: 添加到 Website2 并浏览 localhost:123强>。
【问题讨论】: