Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: set arbitrary http header?

$
0
0
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.

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>