Two Different Backends
Stefan Welschhoff
s.welschhoff at lvm.de
Tue Mar 22 10:42:54 CET 2011
Hello,
I want to configure varnish with two different backends. But with my
configuration varnish can't handle with both.
sub vcl_recv {
if (req.url ~"^/partner/")
{
set req.backend = directory1;
set req.http.host = "partnerservicesq00.xxx.de";
}
if (req.url ~"^/schaden/")
{
set req.backend = directory2;
set req.http.host = "servicesq00.xxx.de";
}
else
{
set req.backend = default;
}
}
When I take only the first server and comment the second out it works. But
I want to have both.
Kind regards
Stefan Welschhoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110322/9fcbc6dd/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LVM_Unternehmenssignatur.pdf
Type: application/pdf
Size: 20769 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110322/9fcbc6dd/attachment-0003.pdf>
More information about the varnish-misc
mailing list