For both nginx, and HAProxy https://serverfault.com/questions/314574/nginx-real-ip-header-and-x-forwarded-for-seems-wrong https://serverfault.com/questions/722151/haproxy-how-to-append-client-ip-in-x-client-ip-and-x-forwarded-for-headers On related note, configurable log level.