3 回答

TA貢獻1872條經驗 獲得超4個贊
我得到你沒有訪問權限/禁止在此服務器上
hosts file : 192.168.1.2 example.local
httpd.conf file:
Listen 0.0.0.0:8081
Listen [::0]:8081
Listen 192.168.1.2:8082
vhosts file:
# Virtual Hosts
#
<VirtualHost *:8081>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:8082>
ServerName example.local
DocumentRoot "c:/wamp64/www/goodmorning"
<Directory "c:/wamp64/www/goodmorning/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.1.2
</Directory>
</VirtualHost>
有什么建議嗎?Wampp 3.1.9 64位

TA貢獻1856條經驗 獲得超17個贊
我的電話無法定向到圖像URL,所以我按照您所說的那樣進行操作,而端口僅與我的PC的IP一起播放。因此,我的站點的域名/服務器名稱分別為192.168.1.100:8000、192.168.1.100:8001,依此類推,例如,不要檢查虛擬主機定義并在Wamp設置中重復服務器名稱。最終,在永久鏈接設置下的wordpress中,并使用一些插件(例如天鵝絨藍),將URL更改為唯一的URL并不是很困難,這樣可以查看我的手機在不同網站上的外觀。非常感謝您的詳細解釋!
添加回答
舉報