Reg: backend 'name' in VCL before going to origin
Hardik
hetardik.p at gmail.com
Wed May 29 11:54:57 UTC 2019
Hi Team,
Requirement : *to set few headers based on backend origin ( having multiple
origins/backends in single director)*.
I want to do similar to this.
https://stackoverflow.com/questions/43357690/varnish-vcl-how-can-i-switch-on-req-backend-hint
sub vcl_backend_fetch {
if (bereq.backend.name == "one") {
std.log("one");
} else if (bereq.backend.name == "two") {
std.log("two");
} else {
std.log("neither one");
}
}
I am trying to do same (inside b_fetch) but getting error that symbol not
found. I am using varnish 6.1.
Is this different function call/name for varnish 6.1 ?
Thank you
Hardik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20190529/25d369ff/attachment.html>
More information about the varnish-misc
mailing list