woyoudn 发表于 2018-11-27 11:02:44

使用本机IP无法访问IIS或apache Web页面的问题

当使用诸如http://192.168.1.2/这样的本机地址访问web页面时,无法显示页面,但是使用localhost127.0.0.1或者本机的hostname时均可正常访问。
这时通常可以检查如下几点:
1、防火墙配置是否有问题
2、IE的安全级别设置是否有问题
3、是否使用了代理,即使选中了“对于地址不使用代理服务器”选项,也会产生这样的问题。原因查找微软的官方文档,给出如下解释:

When you connect to a Web server using the Internet Protocol (IP) address or Fully Qualified Domain Name (FQDN) on the local network, Microsoft Internet Explorer or Windows Internet Explorer connects through an assigned proxy server even if the Bypass proxy server for local addresses option is turned on.

However, if you connect to a Web server using the host name (for example, http://webserver) instead of the IP address (for example, http://10.0.0.1) or FQDN (for example, http://webserver.domainname.com), the proxy server is bypassed and Internet Explorer connects directly to the server.

CAUSE:
By default, only host names are checked when the Bypass proxy server for local addresses option is turned on.

RESOLUTION:
To bypass a range of IP addresses or a specific domain name, specify the addresses in the proxy exception list:
[*]In Internet Explorer, on the Tools menu, click Internet Options.
[*]On the Connections tab, click LAN Settings.
[*]Click Advanced, and type the appropriate information in the Exceptions area.





页: [1]
查看完整版本: 使用本机IP无法访问IIS或apache Web页面的问题