在httpd.conf配置文件中,将Require local改为Require ip 127.0.0.1 示例代码如下:
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require ip 127.0.0.1
这样设置后,只允许127.0.0.1这个IP地址访问本地网络,其他IP地址将无法访问。
上一篇:ApacheHttpComponentsv5.2HTTPclient总是通过TCPRESET关闭连接。
下一篇:Apachehttpd2.4.57源代码预检时出错