1、使用ipconfig在cmd上查看本机ip
2、为本机ip配置虚拟路径(站点域名)
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\wxapp-clean"
ServerName 192.168.124.27
ServerAlias
<Directory "D:\phpStudy\WWW\wxapp-clean">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
3、重启
(还是不可以的话,请尝试关闭防火墙)