add req.http.x-forwarded-for header

Andreas Götzfried revirii at googlemail.com
Wed Feb 6 17:25:01 CET 2013


Hi all,

sorry for the last thread, i'm not really used to working with mailing
lists. I hope at least this message get's sorted properly...

Hi Raul,

thanks for your answer! I checked vcl_recv but couldn't find anything
relevant. And i don't think this is the problem, because:

I.
nginx.https -> varnish
x-forwarded-for is logged in /var/log/varnish/varnish.log

II.
only varnish.http
x-forwarded-for isn't logged in /var/log/varnish/varnish.log

So this has to be a quite strange return statement that clears the
x-forwarded-for when the http request is received by varnish
externally, but leaves the header untouched when it's sent via nginx
(and this traffic is http as well).

I'll re-check the code again, but... :-/


Andreas



More information about the varnish-misc mailing list