存储在 IIS 中 Web 应用程序的文件夹中的 web.config 文件中的 system.webServer 和 system.web 设置的范围是什么?



我在Default Web Server下面的IIS管理器中添加了一个应用程序。我想确认应用程序的web.config中的system.webServersystem.web设置的范围是应用程序,对Default Web Server或其他应用程序的设置没有影响。这是正确的吗?

例如,如果为该特定应用程序启用了windowsAuthentication,则该设置将影响该应用程序,并且仅影响该应用:

<system.web>
<authentication mode="Windows" />
<authorization>
<allow roles="myDomainmySecurityGroup" />
<deny users="?" />
</authorization>
</system.web>

<system.webServer>
<security>
<authentication>
<windowsAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>

是的,你是对的,只做这个应用程序,它还包含位于网站虚拟目录中的应用程序
此外,system.web部分用于配置IIS6.0,system.webserver用于配置IIS7。
查看这些链接以了解更多详细信息
<system.web>并且<system.webServer>
http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/
如果有什么我可以帮忙的,请随时告诉我。

相关内容

最新更新