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

Re: proxy_pass to backend (varnish): delivered ip?

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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>