Apache2 handler not compatible with mod_remoteip
Affected version
Version: 2.17.0
Summary
- Configure Apache2 + handler
- Configure mod_remoteip to set IP address from X-Forwarded-For
- LemonLDAP still uses the proxy's address in $req, which means logs are wrong and rules based on $ENV{REMOTE_ADDR} don't work
Logs
[perl:debug] [pid 2057] Redirect PROXY.IP.ADDR to portal (url was /)
Possible fixes
Use undocumented $r->useragent_ip instead of $r->connection->remote_ip
This will cause a change in behavior that must be mentionned in release notes