当使用主机名访问时,IIS要求登录/传递,但在使用“localhost”时则不会.为什么?

前端之家收集整理的这篇文章主要介绍了当使用主机名访问时,IIS要求登录/传递,但在使用“localhost”时则不会.为什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在我的xp机器上设置了IIS,并设置了默认主页(安装了IIS).这是我认为的帮助页面.

当我使用http://localhost访问页面时它工作正常(IE / Chrome或FF),但是当我使用http://hostname访问它时,它会提示输入登录/密码,并且当我在Intranet上输入我的域ID和密码时可以正常工作.

我确保在默认站点和“网站”节点的属性窗口中启用“匿名访问”.

搜索了堆栈溢出类似的查询但有些表明我需要更改IE / FF设置以允许“集成安全性”等,有些人建议查看“日志文件”.

我不想更改IE设置,IIS服务器的日志文件中没有任何异常.

任何人都可以帮我弄清楚为什么会这样吗?

谢谢
SB

您应该查看IIS保护的配置.

虽然您似乎要连接到同一系统,但是使用IIS服务器上的浏览器中的“localhost”,您将连接到127.0.0.1.

当您从另一个系统连接到http://hostname URL时,您将连接到系统外部IP地址.

1.
The client requests a resource on the server.

2.
The IP address of the client is checked against any IP address restrictions in IIS. If the IP address is denied access,the request fails,and a 403 Access Forbidden message is returned to the user.

3.
The server,if configured to require it,requests authentication information from the client. The browser either prompts the user for a user name and password or offers this information automatically.

Access Control in IIS 6.0 (IIS 6.0)

原文链接:https://www.f2er.com/windows/370241.html

猜你在找的Windows相关文章