简体   繁体   English

带有url的IIS 7多网站

[英]IIS 7 Mutiple websites with url

I have 3 Asp.Net MVC 4 web applications. 我有3个Asp.Net MVC 4 Web应用程序。 I deployed one on the Default Web site and other 2 as web applications under Default Web site. 我在默认网站上部署了一个,在默认网站下部署了另外两个作为Web应用程序。 How can I create bindings so that when I go to http://app.xyz.com/ it will go to first application and then if I do http://app.xyz.com/App2 , it should go to 2nd app and so on. 如何创建绑定,以便当我转到http://app.xyz.com/时它将转到第一个应用程序,然后如果我执行http://app.xyz.com/App2 ,则应转到第二个应用程序等等。 Right now I can browse the first application correctly after editing the binding, but when I browse http://app.xyz.com/App2 , I cannot. 现在,在编辑绑定之后,我可以正确浏览第一个应用程序,但是当我浏览http://app.xyz.com/App2时 ,不能。

can I have the url part (/App2) in the host name of the bindings? 绑定的主机名中可以包含url部分(/ App2)吗?

I believe you're looking for Virtual Applications, this should give you the effect you're looking for. 我相信您正在寻找虚拟应用程序,这应该可以为您带来想要的效果。 Please look at http://www.iis.net/learn/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis for more details. 有关更多详细信息,请访问http://www.iis.net/learn/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM