只有一个IP by<requireAll>指令

时间 2019-01-03
阅读 17
点赞 0
收藏 0
连接abdelouahab

From the docs例如,给出的示例包含多条指令

<RequireAll>
    Require all granted
    Require not ip 192.168.205
    Require not host phishers.example.com moreidiots.example
    Require not host ke
</RequireAll>

但它不起作用

Server version: Apache/2.4.37 (Unix)
Server built:   Jan  2 2019 11:35:45
Server's Module Magic Number: 20120211:83

为了让它工作,

Require all denied
<RequireAll>
 Require ip 127.0.0.1
</RequireAll>
<RequireAll>
 Require ip 192.168.1.4/24
</RequireAll>

而不是

Require all denied
<RequireAll>
 Require ip 127.0.0.1
 Require ip 192.168.1.4/24
</RequireAll>

我搞砸什么了吗?

尚无答案