I have an Apache httpd proxy (proxy.example.com) that proxies requests to an application server (app.example.com). Now I'm trying to overwrite the
Host header in requests to app.example.com with a directive like this:
RequestHeader set Host proxy.example.com
However, this only adds a new header
X-Forwarded-Host: proxy.example.com into the request. The host header itself remains unchanged at
Does anyone have an idea why this is the case?
I would expect
RequestHeader set Host <name> to overwrite the Host header as described in the documentation of the RequestHeader Directive...
The request header is set, replacing any previous header with this name