php 403 Forbidden you don't have permission to access

使用wamp作为集成环境,发现随便写个网页,局域网无法访问。经过一番查阅。

发现有两点需要确认:

1、服务器的防火墙要关闭,或者把apache和php的exe允许通过防火墙。

2、httpd-vhost.conf,打开这个文件,这个文件是apache的配置文件,

屏蔽红色字,添加蓝色字,这样就可以解决局域网访问的问题了。


# Virtual Hosts
#


<VirtualHost *:81>
ServerName localhost
ServerAlias localhost
DocumentRoot D:/wamp/www
<Directory  "D:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
allow from all
</Directory>
</VirtualHost>
#

猜你喜欢

转载自blog.csdn.net/qq61394323/article/details/77507550
今日推荐