set arbitrary http header?

zacharyalexstern nginx-forum at nginx.us
Fri Feb 1 19:57:00 UTC 2013


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



More information about the nginx mailing list