talking proxy to backends
a.hongens at netmatch.nl
Sun Feb 14 13:17:33 CET 2016
On 2/9/2016 5:32 PM, Per Buer wrote:
> Hi Angelo,
> On Tue, Feb 9, 2016 at 4:55 PM, Angelo Höngens <A.Hongens at netmatch.nl
> <mailto:A.Hongens at netmatch.nl>> wrote:
> I'm testing a new setup with varnish 4.1 and the proxy protocol.
> Talking proxy works fine on the front-end, hitch talking to varnish
> for ssl offloading.
> But can I also configure varnish to talk proxy to the backends? (I
> want varnish to talk proxy to haproxy that's behind my varnishes). I
> cannot seem to find any documentation or examples.
> I've never heard of any reasons to do so. Varnish doesn't know how to
> talk proxy to it's backend.
> Out of curiosity, why don't you want to speak HTTP to the backends? The
> HTTP request that hits the backend should already have the information
> carried in X-Forwarded-For.
Thanks for all your replies. Indeed, I use varnish in a setup where I
run varnish sandwiched between other services. Varnish is used either
directly in front, or behind nginx (for https offloading, to be replaced
by hitch). Varnish passes every request to haproxy, which then decides
based on all kinds of business logic where to pass the request.
And yes, we currently use the X-Forwarded-For header there, and that
works fine. But I was thinking the proxy proto might give me some more
flexibility in passing around requests, and I was wanting to play with
it. But if varnish doesn't support it (yet), that's fine. No real
business case for us yet.
More information about the varnish-misc