我的托管提供商最近将服务器更新为 Apache 2.4,并且通过 .htacces 文件控制对特定文件夹的访问的规则不再适用于以下代码:
Order Deny,Allow
Deny from All
Allow from 123.123.123.123
Allow from 123.123.123.123
Allow from 123.123.123.123
阅读 Apache 2.4 文档后,我明白我应该使用这样的东西:
<RequireAny>
Require ip 123.123.123.123
Require ip 123.123.123.123
Require ip 123.123.123.123
</RequireAny>
但它不起作用。谁能帮我解决这个问题?谢谢你!
对于 2.4,它现在看起来像这样:
<RequireAll>
Require all denied
Require ip 123.123.123.123
Require ip 123.123.123.123
Require ip 123.123.123.123
</RequireAll>
EDIT:
Require ip 123.123.123.123
Require ip 123.123.123.123
描述对现有 Apache HTTP Server 用户至关重要的信息的文档。
https://httpd.apache.org/docs/trunk/upgrading.html https://httpd.apache.org/docs/trunk/upgrading.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)