【发布时间】:2011-02-04 18:29:39
【问题描述】:
我正在尝试在 IIS 7.5 中添加一个用于匿名访问的目录。它适用于 Web Dev 但不适用于 IIS 7.5
我目前在目录中使用这个 web.config。这是一个带有样式表的目录:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>
更新:
我已进入文件夹并在身份验证下,我已将匿名身份验证从 IIS_USR 更改为池。这似乎是正确的。
我将奖励任何提供非常好的解释和资源以理解此设置的人。此外,如何在全球范围内应用它会很高兴——适用于所有文件夹。
【问题讨论】: