Overriding Host Header not working

Will the Host of Target URL be passed if the entire URL is rewritten ?

It seems the new URL is being used for Host, not the target name

To clarify: the upstream expects a specific Host to serve the proper request, however we route the API locally (172.x.x.x), but it seems that without the proper Host the upstream refuses to serve proper request.