ProxyPreserveHost
ProxyPreserveHost is a configuration option in Nginx's HTTP proxy module that governs how the Host header from a client request is treated when the request is proxied to an upstream server. When the directive is enabled, Nginx forwards the original Host header received from the client to the upstream; when it is disabled, Nginx may overwrite the Host header with the hostname of the upstream server or rely on explicit header configuration.
Why it matters: many applications rely on the Host header to perform virtual hosting, tenant routing, or
Context and usage: proxy_preserve_host can be set in http, server, or location blocks and accepts on or
Relation to other headers: aside from the Host header, reverse proxy configurations may add X-Forwarded-For and