sub vcl_recv {
if (req.url ~ "^/search") {
set req.backend = search-backend;
}
elseif (req.url ~ "^/items") {
set req.backend = items-backend;
}
}
On Tue, Mar 29, 2011 at 10:43 PM, Jonathan Leibiusky <[email protected]>wrote:
> hi! is there any way to use varnish to direct my traffic to different
> backends depending on the requested url?
> so for example I would have 2 different backends:
> - search-backend
> - items-backend
>
> if the requested url is /search I want to direct the traffic to
> search-backend
> and if the requested url is /items I want to direct the traffic to
> items-backend
>
> is this a common use case for varnish or I am trying to accomplish
> something that should be done using something else?
>
> thanks!
>
> jonathan
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc