默认安装的WampServer后,使用ip访问而不是localhost或者127.0.0.1访问网页文件,会报出Forbidden的错误,错误代码是403,解决这个问题的办法是:
修改E:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf的如下代码
?
Order Deny,AllowDeny from allAllow from 127.0.0.1
?修改为:
Order Deny,Allow Deny from allAllow from all
?修改完后重启WampServer