proxy_pass to backend (varnish): delivered ip?
revirii
nginx-forum at nginx.us
Thu Jan 31 06:40:48 UTC 2013
Good Morning,
> You can see the right X-Forwarded-For header with tcpdump.
>
> Take a look at the log format varnish uses. I don't know how to
> configure varnish, but with Apache you have to change your LogFormat
> from
>
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
>
> to something like
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b
> \"%{Referer}i\"\"%{User-Agent}i\"" nginx
Good idea. I'll check if varnish is able to do that.
thx
revirii
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,235737,235761#msg-235761
More information about the nginx
mailing list