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

Re: set arbitrary http header?

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

Viewing all articles
Browse latest Browse all 53287

Trending Articles