首先
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