Allowing Apache to see client ip from Behind a trusted proxy.

With high speed caching based on nginx, varnish or CDNs in general the client ip gets lost. All IPs get reported as 127.0.0.1 since the proxy is making the socket request. Solution is two phased: 1) enable reporting the client IP to theĀ X-Forwarded-For header at the proxy or CDN. This depends on the proxy will…