本机ip是:192.168.1.25,输入后提示: Forbidden You don't have permission to access / on this server 对于此问题的解决办法,打开apache安装路径中的http.conf(有些是httpd.conf)文件,(如果找不到就搜索http.conf,或者httpd.conf) 找打以下内容 # onlineoffline tag - don't remove Order Deny,Allow De
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all #以前是Deny from all </Directory> <Directory "F:/Program Files/wamp/www/"> # # Possible values for the Options directive are "None",
在 httpd.conf 中查找 Allow from 127.0.0.1 Order Deny,Allow Deny from all Allow from 127.0.0.1 在此下面加上 Allow from all 如: Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from all 重启Wamp后 生效
屏蔽IP地址 屏蔽IP地址有时是非常必要的,比如对于一个外贸公司网站,来自国内的访问是不会带来任何经济效益的,而且还占用服务器资源,造成访问延迟等问题. 如果要屏蔽某一特定IP可以使用: order allow,deny deny from 192.168.0.1 allow from all 如果想要屏蔽多个IP地址,只需多加几个deny from 即可 order allow,deny deny from 192.168.0.2 deny from 192.168.0.3 deny from