我試圖從其他計算機執行步驟打開我的網站,其他不同勢計算機訪問本地主機的網站如何從託管相比與計算機局域網連接
How do I connect to this localhost from another computer on the same network?
解釋它的工作也沒關係。但在「步驟3b」,我需要在主機文件中進行更改以打開它,我不希望網站應該打開一次提供url而不更改其他pc或希望通過在httpd中提供客戶端ip來限制訪問-vhosts.conf。我希望所有的計算機訪問局域網中的網站連接。
我該怎麼做?
我想編輯的httpd-xampp.conf
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
它不是工作壓力太大......
如果您通過IP訪問,則不需要這些更改 –