<div dir="ltr">Hi Team,<br><div><br></div><div>Requirement : <b>to set few headers based on backend origin ( having multiple origins/backends in single director)</b>.</div><div>                        </div><div>I want to do similar to this. <a href="https://stackoverflow.com/questions/43357690/varnish-vcl-how-can-i-switch-on-req-backend-hint">https://stackoverflow.com/questions/43357690/varnish-vcl-how-can-i-switch-on-req-backend-hint</a></div><div><pre style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;white-space:inherit">sub vcl_backend_fetch {
    if (<a href="http://bereq.backend.name">bereq.backend.name</a> == "one") {
       std.log("one");
    } else if (<a href="http://bereq.backend.name">bereq.backend.name</a> == "two") {
       std.log("two");
    } else {
       std.log("neither one");
    }
}</code></pre></div><div><br></div><div>I am trying to do same (inside b_fetch) but getting error that symbol not found. I am using varnish 6.1.</div><div>Is this different function call/name for varnish 6.1 ?</div><div><br></div><div>Thank you</div><div>Hardik</div><div><br></div><div><br></div></div>