Mailing List Archive

question about number of backends
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 .
Thank,
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damien WETZEL ("`-/")_.-'"``-._
. . `; -._ )-;-,_`)
(v_,)' _ )`-.\ ``-'
Using Linux requires patience in learning. _.- _..-_/ / ((.'
Using Windows requires learning patience. ((,.-' ((,/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
question about number of backends [ In reply to ]
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.