Synopsis
Use in accelerators to substitute the error messages returned by servers with other custom errors.
In Addition the following headers are forwarded from the client request:
User-Agent, Cookie, X-Forwarded-For, Via, Authorization,Accept, Referer
And the following headers from the server reply:
Server, Via, Location, Content-Location
The reply returned to the client will carry the original HTTP headers from the real error message, but with the reply body of the configured error message.
Arguments
| message_url |
The received HTTP status code (i.e. 404) |
| http_status |
The requested URI where the error occurred |
Example(s)
error_map http://squidconfiguration.com/error/404.shtml 404 |