IIS 中使用 Localhost 401.3 错误的 ASP 页没有权限
我刚刚安装了 IIS,这样我就可以在浏览器中查看 asp 文件,但是当我将地址放入浏览器中时: http:// /localhost/index.asp 我收到错误。
该错误表明:
HTTP 错误 401.3 - 未经授权 由于 Web 服务器上此资源的访问控制列表 (ACL) 配置或加密设置,您无权查看此目录或页面。
我真的需要解决这个问题,我非常感谢对此的任何建议。
I have just installed the IIS so I can view asp files in a browser but when I put the address in a browser as : http://localhost/index.asp I get an error.
The error shows this:
HTTP Error 401.3 - Unauthorized
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 really need to get this sorted out, I would highly appreciate any advice on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我的问题是关于应用程序池中使用的身份。我将站点的身份验证更改为“应用程序池身份”,并为目录授予适当的权限。
My issue was around the identity used in the app pool. I changed the site's Authentication to "Application pool identity" as well as giving the directory the appropriate permissions.
好的,这里凭记忆工作,因为我不在 Windows 机器前。
如果您右键单击您的 webroot 文件夹 /inetpub/wwwroot/ 或您正在打开属性的网站目录并选择安全性,我认为是的,您将看到具有该文件夹权限的用户列表。有一个用于添加新用户的部分,您可以在其中添加
IIS_IUSRS
帐户(如果需要,请从用户列表中搜索),该帐户将是启用匿名身份验证时使用的默认用户。授予此帐户相关权限(读、写、执行),确保您应用到文件和子文件夹。在 IIS 中刷新网站,您应该就可以开始了。OK, working from memory here as I am not in front of a Windows machine.
If you right click on your webroot folder /inetpub/wwwroot/ or the website directory you are working on open properties and select security, I think it is, you will see the list of users with their permissions for that folder. There is a section to add new users where you can add the
IIS_IUSRS
account (search from the list of users if you need to) which will be the default user used when anonymous authentication is enabled. Give this account the relevant permissions (read, write, execute) ensuring you apply to file and subfolders. Refresh the website in IIS and you should hopefully be good to go.我有一个文件夹无法工作(从 zip 文件中提取,该文件来自某种 MS Sharepointy 的电子邮件。或者其他东西)。这些文件都用 Windows 资源管理器 -> 标记。右键单击->属性->高级->加密内容以保护数据。取消勾选就可以治愈。
I had one folder not working (extracted from a zip file which came from an email from some kind of MS Sharepointy thing. Or something). The files were all marked with Windows Explorer -> Right Click -> Properties -> Advanced -> Encrypt contents to secure data. Unticking cured it.
就我而言,我使用默认网站上的“添加应用程序”在 Windows 7 上的 IIS 7 中创建了一个应用程序。我必须从本地计算机添加“用户”帐户,这样就消除了权限错误。
In my case I had created an application in IIS 7 on Windows 7 using "Add Application" on the Default Web Site. I had to add the "users" account from the local machine and that got rid of the permissions error.
我遇到过这种情况,我需要做的显然是添加一个 web.config 文件。这只是一个 PHP 网站,“每个人”都有完全的控制权,但这并不重要。直到有了基本的 Web.config - 没有骰子!
I had this happen to me and what I needed to do was apparently add a web.config file. Doesn't matter that it was just a PHP site, and that "Everyone" had full control. Until there was a basic Web.config - NO DICE!
在 IIS 中选择您的站点,转到右侧 IIS 下的“身份验证”,然后双击它,然后将站点的身份验证更改为“应用程序池身份”,并确保为目录(已发布文件所在的目录)授予适当的权限。
然后重新启动 IIS,错误就消失了。
Select your site in IIS, go to Authentication under IIS on your right hand side and double click it then change the site's Authentication to "Application pool identity” and make sure that you give the directory (where published files are) the appropriate permissions.
And your restart your IIS and your error is gone.
这里,详细解释设置过程。您可以按照步骤操作。
http://coldfusion -tip.blogspot.com/2013/10/you-do-not-have-permission-to-view-this.html
Here, the set up process is explained in detail. You can follow the steps.
http://coldfusion-tip.blogspot.com/2013/10/you-do-not-have-permission-to-view-this.html