IIS7上的多个站点位于相同的URL和端口下但位于不同的目录上 [英] multiple sites on IIS7 under the same URL and port but on different directories
问题描述
我想在同一个IIS上托管多个应用程序。问题是我需要使用相同的URL,如www.example.com,但不同的目录。此外,端口需要为80,或者至少对最终用户是透明的,所以我想要像他这样的东西:
I would like to host multiple applications on the same IIS. The problem is I need to use the same URL like www.example.com, but different directories. Also the port needs to be 80, or at least transparent to the end user, so I'd like to have something like his:
www.example.com/app1
www.example.com/app1
www.example.com/app2
www.example.com/app2
问题是IIS不允许我创建2个网站相同的域名和相同的端口,如果可能的话我不想使用子域名。
The problem is IIS does not let me create 2 sites with the same domain and the same port and I don't wanna use subdomains if possible.
两个应用程序不应位于同一站点,因为它们是具有不同维护计划的单独应用程序。
Both apps should not be on the same site since they are separate applications with different mantainance schedules.
有没有办法做到这一点?或者我必须使用子域吗?
Is there a way to do this? Or do I have to use subdomains?
推荐答案
如果你在 inetpub中有app1和app2目录/ wwwroot
目录,并将它们配置为应用程序,它应该具有您想要的效果。
希望这会有所帮助......
If you have the app1 and app2 directories in the inetpub/wwwroot
directory, and configure both of them as applications, it should have the effect you desire.
Hope this helps...
这篇关于IIS7上的多个站点位于相同的URL和端口下但位于不同的目录上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!