Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个虚拟主机的 apache2 设置,但是我已经设置好了,所以如果你在浏览器中访问 IP 地址,你会收到错误 403。当我 ping 我的一个虚拟主机的域名时,它总是只响应请求对于超时,从不延迟,这是为什么呢?
也许您的托管服务提供商(或您的 Linux 发行版)具有正常工作ICMP所必需的防火墙协议。ping
ICMP
ping
注意 Apache 只TCP需要正常工作,不需要ICMP,这是完全不同的协议。换句话说,ping可能是完全防火墙,但是,您的网站会正确响应。
TCP
一些网站主动防火墙ICMP,最显着的例子是microsoft.com。
microsoft.com