2.3.104 ProxyErrorOverride
ProxyErrorOverride specifies whether to overwrite the response from the backend server if the response is an error status code.
Description
ProxyErrorOverride overrides the response header and response body when the backend server returns a 400-series or 500-series status code. As a result, the reverse proxy generates and returns a response to the client, instead of returning the response from the backend server.
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
ProxyErrorOverride {On|Off}
Specifiable values
- On
-
Overrides the response header and response body when the backend server returns a 400-series or 500-series status code
- Off
-
Does not override the response header and response body
Locations where it can be written
httpsd.conf and <VirtualHost>
Example
ProxyErrorOverride On
When the backend server returns a 400-series or 500-series status code, a response generated by the reverse proxy is returned to the client.