Home > php教程 > php手册 > wampServer php 使用IP访问Forbidden的有关问题

wampServer php 使用IP访问Forbidden的有关问题

WBOY
Release: 2016-06-06 19:41:31
Original
1513 people have browsed it

wampServer php 使用IP访问Forbidden的问题 默认安装的WampServer后,使用ip访问而不是localhost或者127.0.0.1访问网页文件,会报出Forbidden的错误,错误代码是403,解决这个问题的办法是: 修改E:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf的如下代码

wampServer php 使用IP访问Forbidden的问题

默认安装的WampServer后,使用ip访问而不是localhost或者127.0.0.1访问网页文件,会报出Forbidden的错误,错误代码是403,解决这个问题的办法是:

修改E:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf的如下代码

?

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Copy after login

?修改为:

Order Deny,Allow 
Deny from all
Allow from all【本文来自鸿网互联 (http://www.68idc.cn)】re>
<p>?修改完后重启WampServer</p>



Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template