在IIS 7中设置默认应用程序?

问题描述:

您如何在IIS 7中使用默认应用程序? 我有默认的网站节点,下面有几个应用程序. 每个应用程序均已加载其默认文档,如果我将浏览器指向

How do you the default application in IIS 7? I have the default web site node with several applications underneath it. Each application has its default document loaded and if I point my browser to

http://server/appName

它工作正常,可以解析为IIS设置中设置的应用默认文档.

It works fine, it resolves to that apps default document set in the IIS settings.

如何设置它,以便我进入

How can I set it so that if I go to

http://server

它将自动转到 http://server/appName

一个警告是默认网站的根目录是c:\ inetpub \ wwwroot,因为我的应用程序位于c:\ websites \ app1,app2等...

A caveat is that the default web site's root is c:\inetpub\wwwroot where as my applications are located in c:\websites\app1,app2,etc...

您可以在其中放置index.html文件,并在其中添加元重定向.

You could just put an index.html file in there with a meta redirect in it.