Forbidden
You don't have permission to access this resource.
Apache/2.4.46 (Win64) PHP/5.6.40 Server at 192.168.1.25 Port 80
这个是远程访问提示的错误,之前一直用老版本没有问题,新版本支持php7,但是随之而来的是各种小问题,局域网也无法访问,看了一遍配置文件发现是httpd-vhosts.conf配置文件搞得鬼,果断解决。具体方法如下:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require all granted 增加这一句,中文意思是意思是允许所有的请求应该是这么翻译
</Directory>
</VirtualHost>
保存重启wampserver解决
未经允许不得转载:OZ分享-吉家大宝官方博客 » wampserver3.2.3_x64版本无法远程访问或者是局域网访问解决办法