As described in this issue, Terminating Gateways currently do not rewrite Host
header when proxying the requests, resulting in some load balancers returning 404 when you “naively” curl
them:
/ $ curl http://localhost:8443/
404 page not found
/ $ curl --header "Host: api.redacted.ai" http://localhost:8443/
redacted is healthy
I tried to take a stab at implementing a fix here but it doesn’t seem to work.
Any guidance on how I could implement this? This will greatly help enhance the ergonomics of using terminating gateways.