Using Varnish to Proxy 1000s of different sites

Per Buer perbu at
Thu Aug 5 16:50:10 CEST 2010

On Thu, Aug 5, 2010 at 4:33 PM, Tony Primerano <tony.primerano at> wrote:
> (..)
> But what if I have 1000s of backends and I choose them based on the domain
> that user's hit varnish with.   Is this something Varnish handles or is it
> only intended to work with a handful of backends?

It's not built for that.  Kristians dns director might help you out a
bit, but it just entered trunk (will be in 2.1.4).

> Also, it would be really cool if I could do something like this..
> sub vcl_recv {
>   set = "";
>   set  =;
>   return(pass);
> }

That would be an open proxy. Spammers bonanza. Please don't do that. :-)

If you still want to do it you could have a look at

and use a non-caching proxy in stead of squid. That would work.

Per Buer,  Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer

More information about the varnish-misc mailing list