Backend content location
Guillaume Quintard
guillaume.quintard at smartjog.com
Mon Nov 18 09:54:38 CET 2013
On 11/17/2013 11:27 PM, Viktor Villafuerte wrote:
> Hi all,
>
> I'd like to ask if it's possible to get the content location, from a
> pool of backend servers, instead of the content itself.
>
> Eg: backends are grouped by 'director hash' therefore each of them will
> have unique content. When my request is not found in the cache it then
> proceeds onto the backends and gets the content. I'd like to find the
> location such as server1.domain.com/content1 instead of actually getting
> the content.
>
> Is this possible?
>
> v..v
>
Would
set beresp.http.be_name = beresp.backend.name;
Be what you are looking for? (taken from bin/varnishtest/tests/v00028.vtc)
--
Guillaume Quintard
More information about the varnish-misc
mailing list