can vcl.load continue with unused backends?

Hugo Cisneiros (Eitch) hugo.cisneiros at gmail.com
Fri Aug 24 19:11:19 CEST 2012


On Tue, Aug 21, 2012 at 11:10 AM, Carlos Peñas <theistian at gmx.com> wrote:
> I've found this [0] DenverCoder9's issue in the trac. In the resolution of
> that issue its said "This has already been fixed in trunk where you can set
> a parameter to turn these errors into warnings.//"
>
> Well, I'm trying to find that option but in the ticket there's any clues. I
> also checked the docs and varnishd man page but still can't find any
> reference.
>
> I'm using varnish 3.0.x from apt packages. There's a way to compile a VCL
> with a backend defined but not assined?

Did you find the option?

Well, a workaround that I sometimes use is to simply set a
req.backend, but not use it, like:

set req.backend = be_unused;
set req.backend = be_original;

Or

if (req.http.host == "veryfakeandinvalidhost") { set req.backend = be_unused; }

This way the backend is used by VCL but not used at all on the logic. :P

-- 
[]'s
Hugo
www.devin.com.br



More information about the varnish-misc mailing list