0

我正在尝试使用 mod_remoteip 运行 mod_evasive(我正在使用来自 Digitalocean 的负载平衡器)。但是当强制刷新我的负载均衡器 ip 而不是客户端 ip 时会被禁止。

我为 remoteip.conf 配置了以下内容:

RemoteIPHeader X-Forwarded-For
RemoteIPProxyProtocol On # Without this Load balancer will give unhealthy status
RemoteIPTrustedProxy ***.***.***.***
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

日志提供客户端 ip。哪个好。我现在面临的唯一问题是 mod_evasive 禁止错误的 ip。

有相同配置的人吗?或同样的问题。

请帮忙 :)

4

0 回答 0