On 7 December 2013 11:08, Clémence Varroi <[email protected]> wrote:
> I think I've made a mistake with my configuration. I can't retrieve the ip
> adresse of my clients in my logs, I have just the ip adresse of my varnish
> and I am becoming mad...

It strikes me that the culprit is probably your nginx real_ip setup,
and you need to test it with a set of synthetic, curl'd requests.

If real_ip /were/ working, and translating the X-F-F into logged IPs,
I think you'd see (at a *minimum*) the HAProxy server's IP in nginx's
logs - not the Varnish server's IP.

Don't forget to ensure real_ip is happy with:

a) multiple X-F-F request headers (which are legal but whose ordering
may be confusing nginx) and
b) X-F-F headers with multiple IPs (e.g. "X-F-F: 1.2.3.4, 2.3.4.5", etc) and
c) combinations of (a) and (b).

Cheers,
Jonathan

Reply via email to