【发布时间】:2016-10-16 08:46:53
【问题描述】:
我尝试从其他计算机上打开我的网站,执行步骤中解释的步骤
How do I connect to this localhost from another computer on the same network?
它也工作得很好。但是在“步骤 3b”中,我需要更改主机文件以打开它,并且我不希望我希望网站在给出 url 后打开而不在其他电脑上进行更改,或者希望通过在 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 访问,则不需要这些更改
标签: php mysql apache localhost