question about number of backends

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Nov 20 16:01:38 CET 2006


In message <17761.48842.607135.164426 at dwetzel@nerim.net>, Damien Wetzel writes:
>Hello,

>Have you planned to have the possibility to have several backend choices
>depending of the HOST http directive received.
>The goal would be to manage several domains from one machine .

Yes, this already works.

You need to assign the backend you want to use before pipe/pass/fetch
is done, so do it in vcl_recv()


-- 
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-misc mailing list