IIS 6 在使用主机名时要求身份验证
我们有一个网站,现在已添加 Windows 身份验证。现在,当我发布对服务器的更改时,IIS 要求进行身份验证,并且在尝试使用正确的凭据 3 次后,出现“未授权”错误。
如果我尝试使用本地主机从服务器内部访问该网站,它工作正常。如果使用 IP 地址而不是主机名进行远程访问,它也可以正常工作。
http://localhost/mysite 在服务器 EXSER002 中工作正常。 http://IPADDRESS/mysite 工作正常 http://EXSER002/mysite 身份验证失败。
该站点通常在 Windows 身份验证之前使用主机名。
甚至尝试从本地计算机 ping 到服务器,我可以 ping 主机名和 IP 地址。我收到的错误是:您无权查看此页面
We have a website to which we have now added Windows authenication. Now when I release my changes to the server,IIS asks for Authenication, and after trying with right credentials for 3 times, I get Not autorized error.
If I try to access the website from within the server using localhost, it works fine. It also works fine if accessed remotely using IP address instead of hostname.
http://localhost/mysite works fine from within the server EXSER002.
http://IPADDRESS/mysite works fine
http://EXSER002/mysite fails with authentication.
The site use to work with the hostname prior to Windows authentication.
Even tried ping from local machine to the server and I can ping both the hostname as well as the IP address. Error I get is: You are not authorized to view this page
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你有代理吗?如果是这样,请确保本地地址的旁路已打开。
Do you have a proxy? If so, make sure that bypass is on for local addresses.
检查此链接。
http://support.microsoft.com/kb/896861 。
该问题是由于环回检查安全功能造成的。您需要更改注册表设置(如链接中所述)以消除身份验证失败。
Check this link.
http://support.microsoft.com/kb/896861 .
The issue occurs due to the loopback check security feature .you need to make registry setting changes (as mentioned in the link) to get rid of the authentication failures.