我有 VS2010sp1 我用 C#、jQuery 等开发了一个 MVC 3 站点。当我开发时,我使用 IIS Express。客户现在要我在 Windows XP 计算机上通过 Internet Explorer 7 测试站点。
我在 VMWare 上运行的虚拟机中有一台带有 IE7 的 XP 机器。 VMWare 机器网络适配器设置为桥接。
我在同一台机器上运行 VS2010、IIS Express 和 VMWare 工作站 8(64 位 Windows 7 Ultimate)。我似乎能够访问主机。我可以 ping 主机的名称,它用正确的 IP 地址回答并且它是事件的。
我应该如何配置 IIS Express 和虚拟机,以便我可以从在虚拟机中运行的 IE7 访问我的网站?
谢谢
最佳答案
我知道这个问题很老,但仅供引用,如果有人想要答案。
http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx
我认为可以以类似的方式配置新的 IIS Express 8。
编辑: applicationHost.config
详细配置步骤请引用网址^
<site name="MvcApplication18" id="39">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="c:\users\scottha\documents\visual studio 2010\Projects\MvcApplication18\MvcApplication18" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:15408:localhost" />
<binding protocol="https" bindingInformation="*:44302:localhost" />
<binding protocol="http" bindingInformation="*:80:hanselman-w500" />
<binding protocol="https" bindingInformation="*:443:hanselman-w500" />
</bindings>
</site>
关于visual-studio - 从 VMWare guest 访问由 Visual Studio 2010 启动的 IIS 7.5 Express,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8525534/