Apache,IIS局域网访问设置

Apache部分:

使用localhost(127.0.0.1)可以访问,但是使用本机IP,本机和局域网都不能访问。解决方法就是打开http.conf,找到:
# onlineoffline tag -don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0.*

把Deny from all前面的#注释去除即可,同时关闭windows防火墙。

IIS部分:

本人无意间发现使用localhost可以访问,但是使用127.0.0.1不能访问,同时也有可能表现为只能用IIS浏览,ie无法解析。原因是没有绑定默认php的文档。将windows防火墙打开,切换到高级选项,点击网络连接设置,在服务中把web服务器前面的勾选,同时关闭防火墙,这样IIS也可以进行局域网访问了。

Leave a comment

Your comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word