Welcome! Log In Create A New Profile

Advanced

Re: set arbitrary http header?

February 01, 2013 02:57PM
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.
Subject Author Posted

set arbitrary http header?

zacharyalexstern February 01, 2013 02:21PM

Re: set arbitrary http header?

Francis Daly February 01, 2013 02:38PM

Re: set arbitrary http header?

zacharyalexstern February 01, 2013 02:44PM

Re: set arbitrary http header?

Francis Daly February 01, 2013 02:54PM

Re: set arbitrary http header?

zacharyalexstern February 01, 2013 02:57PM

Re: set arbitrary http header?

Francis Daly February 01, 2013 03:42PM

Re: set arbitrary http header?

zacharyalexstern February 01, 2013 03:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 5 on July 11, 2016
Record Number of Guests: 271 on July 19, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready