adding header question

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Feb 23 09:19:08 CET 2010


In message <e6b3e5a61002210221q42a5f6a4v90b595c81a6eaf5b at mail.gmail.com>, Eran 
Sandler writes:

>I tried setting the header in vcl_recv (set req.http.MyHeader = "1";),
>[...] but it doesn't seem to get sent to the backend.

That should work.

Try running varnishlog, and keep an eye on the "TxHeader" lines, which
show what is sent to the backend.

You can also enable the vcl_trace parameter, which will put records
into the varnishlog, with line+char_pos of the VCL as it is executed.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list