新版 WampServer 开放外网访问配置步骤有所改变,如下:
- 运行 WampServer ,右键图标,设置语言中文,并增加在线/离线选项菜单:
- 左键点击托盘图标,切换到在线状态,如图:
打开编辑配置文件“httpd-vhosts.conf”,修改“Require local”为“Require all granted”,例如:
<VirtualHost *:80> ServerName localhost DocumentRoot c:/wamp64/www <Directory "c:/wamp64/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
- 重启 Apache 即可。