ProxyPreserveHost on When Apache is acting as a reverse proxy, the Host: header is modified in the proxy request to match the hostname specified in the ProxyPass directive. The original Host: header is placed in another header, X-ForwardedHost. In certain situations, it is desirable to preserve the original value of the header. This can be done by setting ProxyPreserveHost on in the configuration file. Certain information about the request gets lost when a reverse proxy is in place. The reverse proxy records some of that information in new headers that are added to the request to the backend server:
You can pass additional information using the Header and RequestHeader directives, as shown in the next section. |