Different host headers - same cache?

Thomas Lecomte thomas.lecomte at virtual-expo.com
Sun Oct 16 00:55:31 CEST 2016


Hello,

On Sat, Oct 15, 2016 at 11:03 AM, Frederik Ramm <frederik at remote.org> wrote:
> Question 1:

You will need to rewrite bereq.http.host in the vcl_backend_fetch
routine depending on the backend to which you are sending the request.

> Question 2:

The hash used to identify an unique object is computed in vcl_hash,
and by default, includes req.http.host (the HTTP Host: header sent by
the client). You don't have to modify something since it's not the
Host header sent to the backend that is being hashed, but the one sent
from the client to varnish.

Hope this helps,

-- 
Thomas Lecomte



More information about the varnish-misc mailing list