This is unlikely to work - Tyk is itself a proxy and modifies the host header as it passes through the stack, in fact it will most likely overwrite your host header changes as it runs the proxy, which is why it hasn’t changed.
Is there a way to integrate Tyk with Linkerd? I have tried setting http_proxy variable in /etc/environment but I still see the same error (even after a restart of the Tyk server).
I’d first check to make sure that the path you are targetting is actually being processed - can you add another header to it (like Foo: bar), if you see this header in your outbound request, then we can confirm it’s being captured.
Next, you could try to delete the host header first, (deletes happen before Add, so that you can substitute).
I found a way to resolve it in my linkerd config. By default linkerd uses the Host header for figuring out the routing, you can override it by adding the identifier property as such:
I used the Endpoint Designer to then add custom-header to all of my requests with the linkerd app id and it works successfully. Maybe this could be included in the docs?