IIS 8 网页权限

IIS 8 Permission of Web Page

我想在 Windows 2012 R2 服务器上的我的网站上有一个只有 John.Doe 可以访问的网页。该页面位于测试文件夹中,我为 John.Doe 分配了读取和执行权限,但我无法在 Web 浏览器上使用 John.Doe 凭据访问该页面。

这种类型的配置适用于 Windows 2003 服务器。为什么它在 Windows 2012 年不起作用?请帮忙!

TIA

当您 运行 iis 站点时,它 运行s 在应用程序池身份下,而不是特定用户的用户。如果您想 运行 作为特定用户,您必须在 iis 应用程序池标识中分配自定义帐户。

尝试使用进程监视器来解决问题: https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

限制用户的代码:

<configuration>
   <system.webServer>
      <security>
         <authorization>
            <remove users="*" roles="" verbs="" />
            <add accessType="Allow" users="" roles="Administrators" />
         </authorization>
      </security>
   </system.webServer>
</configuration>

https://docs.microsoft.com/en-us/iis/configuration/system.webServer/security/authorization/

https://docs.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities