vcl_error check backend
Daniel Lafraia
lafraia at gmail.com
Tue Oct 9 17:08:19 CEST 2012
Is there a way to check which backend was used under vcl_error()?
Something like:
sub vcl_error {
if (obj.backend.host == "backend1") {
synthetic "error on backend1";
} elsif (obj.backend.director == "dir1") {
synthetic "error on director dir1";
} else {
synthetic "";
}
}
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121009/c4104186/attachment.html>
More information about the varnish-misc
mailing list