Hej there,
On 30.03.11 04:52, "AD" <[email protected]> wrote: >sub vcl_recv { > if (req.url ~ "^/search") { > set req.backend = search-backend; > } > elseif (req.url ~ "^/items") { > set req.backend = items-backend; > } > >} By the way, would it also be okay to write it like that? sub vcl_recv { set req.backend = catchall-backend; if (req.url ~ "^/search") { set req.backend = search-backend; } if (req.url ~ "^/items") { set req.backend = items-backend; } } Obviously with the addition of the catchall-backend. Cheers, Marian _______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
