wamp環境下手機如何訪問本地項目


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM