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
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to