首先
windows+r
输入 cmd
输入 ipconfig

查看到自己的ip,例如我是192.168.1.**

然后配置host
127.0.0.1 192.168.1.**

开启http.conf


# Virtual hosts
Include conf/extra/httpd-vhosts.conf

 

然后就是配置httpd-vhosts.conf

<VirtualHost *:80>
DocumentRoot "D:/wamp/www/***"
ServerName 192.168.1.**
</VirtualHost>

好了,一切就好了,然后!!!重启环境就好了

 

然后手机链接到局域网的
wifi->***
然后再手机浏览器输入
192.168.1.***

dengdengdengdeng

出来了

 

附带出现没权限问题(引用)

http://www.xk8013.com/website_building/179.html