Thanks for your explanation. If I were to later add load balancers in front of my proxy server, would the $remote_addr IP be correct (i.e. the client IP) or would it be the IP of the load balancer? Thanks again for your help. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253247,253255#msg-253255