Mailing List Archive

why default_header part of vrt_backend is removed in varnish 5
Hi All,


I'm using default headers specific to backend type in 3.1. For example
backend 1 ,backend2 where default header for backend1 will be "xyz" and
backend2 will be "abc".
Now I don't find a way to add these headers in bereq. because I don't know
what is the backend chosen and value should be added for a header is like
adding multiple if else condition in the vcl_backend_featch. Looks like if
i have more number of backends ,it will not scale.
Please any could explain why this is been dropped in 5 and how could it be
handled?

Thanks,
Prem
Re: why default_header part of vrt_backend is removed in varnish 5 [ In reply to ]
On Wed, Nov 22, 2017 at 6:49 AM, Prem Kumar <n.premkumar.me@gmail.com> wrote:
> Hi All,
>
>
> I'm using default headers specific to backend type in 3.1. For example
> backend 1 ,backend2 where default header for backend1 will be "xyz" and
> backend2 will be "abc".
> Now I don't find a way to add these headers in bereq. because I don't know
> what is the backend chosen and value should be added for a header is like
> adding multiple if else condition in the vcl_backend_featch. Looks like if i
> have more number of backends ,it will not scale.
> Please any could explain why this is been dropped in 5 and how could it be
> handled?

Hello,

Not sure to understand, are you referring to `.host_header`? It's
still arround. You mention Varnish 3.1 but there is no such release,
are you upgrading from 2.1 or 3.0?

Dridi
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc