关于Apache的设置网上有很多,根据版本的不同有很多不同的方法,在此之针对WampServer 3.0.6版本的Apache2.4.x版本进行局域网访问设置
一共用修改两个配置文件
1.
进入安装目录:wamp64\bin\apache\apache2.4.23\conf
找到httpd.conf,用记事本打开
找到 # onlineoffline tag - don't remove 下方的 Require local
修改为 Require all granted 保存
2. 进入wamp64\bin\apache\apache2.4.23\conf\extra目录
找到 httpd-vhosts.conf 文件,记事本打开
在 AllowOverride All 下方的 Require local
修改为 Require all granted 保存
重启WampServer
完成
若仍不能访问,进入控制面板,关闭Windows防火墙