I'd like nginx to set a header that contains the IP address of the server nginx is running on. So something like: proxy_set_header X-Nginx-IP $proxy_host; Assuming $proxy_host evaluates to the IP of the server nginx is running on. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,235827,235833#msg-235833