adding header question

Eran Sandler eran at
Sun Feb 21 11:21:50 CET 2010

Hi all,

I'm sure this is probably a minor thing that I'm missing. What I want to do
is something rather simple.

I want to add a header to requests that go to the backend. This header is
not on the original request. Some of the requests go to the backend through
pass and I want to make sure that header is on that request as well.
I tried setting the header in vcl_recv (set req.http.MyHeader = "1";),
vcl_pass (set bereq.http.MyHeader ="1") and in a couple of other places, but
it doesn't seem to get sent to the backend.

I would appreciate any help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-dev mailing list