<div class="gmail_quote"><div>Hi again,</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You'd write something like:<br>backend normalhttp { .host = "a.b.c.d"; .port="80"; }<br>
backend customserver { .host = "w.x.y.z"; .port="80"; }<br>
<br>
sub vcl_recv {<br>
<br>
// Set the default backend:<br>
set req.backend = normalhttp;<br>
<br>
// But override it if this is a request containing X-RAWDATA<br>
if (req.http.X-RAWDATA!="") {<br>
set req.backend = customserver;<br>
}<br>
...<br>
<br>
This code above isn't tested, but we use a similar approach happily in production. We inspect the http host, and redirect certain hosts to different backend director pools.<br></blockquote><div><br></div><div>Believe it or not, the solution works "like a charm" !!!</div>
<div><br></div><div><br></div><div>Regards</div><div>Zab</div></div>