Ah, so, we have this line: proxy_set_header X-Real-IP $remote_addr; Is there a list of the variables similar to $remote_addr somewhere? Is $proxy_host possibly what we need? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,235827,235830#msg-235830