【发布时间】:2016-10-18 08:27:44
【问题描述】:
我的托管服务提供商最近将服务器更新为 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>
但它不起作用。有谁能帮我解决这个问题吗?谢谢!
【问题讨论】:
标签: .htaccess