mod_http_errors
This module is loaded by mod_http to handle generation and serving of friendlier HTTP error pages.
Option | Type | Default | Description |
---|---|---|---|
http_errors_detailed | boolean | false |
Show detailed errors, eg tracebacks, which may aid in debugging. |
http_errors_always_show | boolean | true |
Serve a page when the error does not have a detailed description |
http_errors_default_message | string | "That's all I know." |
Default message when there's none for the current error code in http_errors_messages |
http_errors_messages | table | See below | Specify messages for various error codes |
An example of http_errors_messages, showing the default strings, below:
= {
http_errors_messages [400] = { "What kind of request do you call that??" };
[403] = { "You're not allowed to do that." };
[404] = { "Whatever you were looking for is not here. %";
"Where did you put it?", "It's behind you.", "Keep looking." };
[500] = { "% Check your error log for more info.";
"Gremlins.", "It broke.", "Don't look at me." };
}
If the first string contains an percent (%
) character,
it gets substituted one of the later strings, picked at random.