当 Apache 配置了 Require 某个 IP 地址的时候,默认情况下 Apache 是直接获取的和自己进行通信的客户端 IP 地址,如果此时 Apahce 位于阿里云的负载均衡器后面,那么 Apahce 就把负载均衡器的 IP 地址识别为请求者的 IP 地址 此时,应该对 Apache 进行一下配置: 首先,为 Apache 启用 remoteip 模块 root@server:/etc/apache2/mods-available# a2enmod remoteip…
5 Comments