The best solution is to enable the mod_remoteip
module and add RemoteIPHeader X-Forwarded-For
directive to all virtual host configurations.
mentioned in commit 67b109c4
Using the module remoteip is causing issues such that requests coming directly from haproxy will no longer have the correct client ip in the access log. Requests coming through haproxy and varnish though have been showing up correctly. All very confusing. The implemented solution is no explicitly defining the ErrorLogFormat.
closed