IIS - 401.3 - 未经授权 [英] IIS - 401.3 - Unauthorized

查看:41
本文介绍了IIS - 401.3 - 未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开始使用 IIS.我在 IIS 管理器上创建了一个新站点,将它映射到我的文件系统上的一个文件夹并将 index.html 添加到该文件夹​​中.我已将此站点的端口设置为 85.当我尝试访问 http://localhost:85/index.html 时,我收到以下错误消息:

I am trying to get started with using IIS. I created a new site on IIS Manager, mapped it to a folder on my file system and added index.html to the folder. I have set the port to 85 for this site. When I try to access http://localhost:85/index.html, I get the following error message:

401.3 - 未经授权 - 由于访问控制列表 (ACL),您无权查看此目录或页面Web 上此资源的配置或加密设置服务器.

401.3 - unathorized - You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

我向文件夹中的每个人授予了读取权限,然后再试了一次.然后我可以访问该页面.

I gave read access to everybody on the folder and tried again. I could then access the page.

然后我将我的文件夹的属性与 wwwroot 的属性进行了比较.我发现 wwwroot 对 IIS_IUSRS 具有读取权限...当我对我的文件夹执行相同操作并再次尝试时,我再次收到上述错误.我检查了默认情况下启用匿名访问,但我仍然收到此错误.

I then compared the properties of my folder with that of wwwroot. I found that wwwroot had read access on IIS_IUSRS...When I did the same on my folder and tried again, I got the above error again. I checkedthat anonymous access is enabled by default, but I still get this error.

为什么会这样?解决问题的正确方法是什么?

Why does this happen? What is the correct way to resolve the problem?

推荐答案

我在同一个问题上挣扎了好几天.可以通过修改您的站点所映射到的文件系统文件夹的安全用户访问属性来解决.但 IIS_IUSRS 并不是您必须授权的唯一帐户.

I have struggled on this same issue for several days. It can be solved by modifying the security user access properties of the file system folder on which your site is mapped. But IIS_IUSRS is not the only account you must authorize.

  • 在 IIS 管理控制台中,在您站点配置的 Authentication 部分,修改匿名身份验证"行并检查帐户设置为特定用户"(我的是 IUSR).
  • 向列为特定用户的帐户授予对您网站文件夹的读取和执行权限.

  • 在 IIS 管理控制台中,在站点配置的身份验证部分,通过选择应用程序池的身份"而不是特定用户"来修改匿名身份验证"行.

这篇关于IIS - 401.3 - 未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆