2.3.107 ProxyPreserveHost
ProxyPreserveHost specifies whether the value of the Host header received from the client is to be transferred to the backend server.
Description
ProxyPreserveHost specifies whether the value of the Host header received from the client is to be transferred to the backend server, when a reverse proxy is used.
Note that the following modules must be built-in to use a reverse proxy:
-
mod_proxy module
LoadModule proxy_module modules/mod_proxy.so
-
mod_proxy_http module
LoadModule proxy_http_module modules/mod_proxy_http.so
Syntax
ProxyPreserveHost {On|Off}
Specifiable values
- On
-
Transfers the value of the Host header received from the client to the backend server
- Off
-
Changes the value of the Host header received from the client according to the value specified in the ProxyPass directive, and then transfers the value to the backend server
Locations where it can be written
httpsd.conf and <VirtualHost>
Example
ProxyPreserveHost On
This example transfers the value of the Host header received from the client to the backend server.