Welcome! Log In Create A New Profile

Advanced

Re: set arbitrary http header?

Francis Daly
February 01, 2013 02:38PM
On Fri, Feb 01, 2013 at 02:21:05PM -0500, zacharyalexstern wrote:

Hi there,

> Currently in our setup, we are using the X-Real-IP header setting in nginx,
> to tell in our backend apache logs the IP address of the client.

Which line in your nginx configuration is doing that?

> Is it possible to set up nginx to insert an arbitrary HTTP header with text
> of my choosing, or with it's own IP address?

Yes.

What happens if you copy the current line, and change some parts of it?

It should be straightforward enough to test.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready