![为什么我尝试访问网站主文件夹时总是出现 401 错误?](https://linux22.com/image/666285/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E5%B0%9D%E8%AF%95%E8%AE%BF%E9%97%AE%E7%BD%91%E7%AB%99%E4%B8%BB%E6%96%87%E4%BB%B6%E5%A4%B9%E6%97%B6%E6%80%BB%E6%98%AF%E5%87%BA%E7%8E%B0%20401%20%E9%94%99%E8%AF%AF%EF%BC%9F.png)
我正在尝试使用 IIS 7.5 在 Windows Server 2008 上建立一个网站。我已TestAppPool
在 上创建了一个新的应用程序池 ( ) 和一个新的网站c:\inetpub\wwwroot\test
。我已授予“IIS AppPool\TestAppPool”读取/执行权限(使用icacls
)。身份验证只是 NTLM。
当我尝试访问该网站时,出现登录提示并且不让我通过。
我已按照我在以下网址找到的说明进行操作https://stackoverflow.com/questions/5437723/iis-apppoolidentity-and-file-system-write-access-permissions但仍然无法访问网页。
我需要做什么?
事件日志包含以下内容:
Event code: 4008
Event message: File authorization failed for the request.
Event time: 07.09.2015 14:18:58
Event time (UTC): 07.09.2015 12:18:58
Event ID: bdf78e0b751e41dcae5b391d18555406
Event sequence: 3
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/3/ROOT-1-130861019381349122
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\TEST\
Machine name: SRVC200
Process information:
Process ID: 3552
Process name: w3wp.exe
Account name: IIS APPPOOL\TestAppPool
Request information:
Request URL: http://mywebsrv:8080/
Request path: /
User host address: 172.xx.xx.xx
User: DOMAIN\me
Is authenticated: True
Authentication Type: Negotiate
Thread account name: IIS APPPOOL\TestAppPool
Custom event details: