httpd: add optional support for error pages

(by Pierre Metras <genepi@sympatico.ca>)
This commit is contained in:
Denis Vlasenko
2007-08-21 10:26:55 +00:00
parent 45946f8b51
commit e58e8d9444
2 changed files with 166 additions and 85 deletions

View File

@@ -170,6 +170,19 @@ config FEATURE_HTTPD_ENCODE_URL_STR
For example, httpd -e "<Hello World>" as
"&#60Hello&#32World&#62".
config FEATURE_HTTPD_ERROR_PAGES
bool "Enable support for custom error pages"
default n
depends on HTTPD
help
This option allows you to define custom error pages in
the configuration file instead of the default HTTP status
error pages. For instance, if you add the line:
E404:/path/e404.html
in the config file, the server will respond the specified
'/path/e404.html' file instead of the terse '404 NOT FOUND'
message.
config IFCONFIG
bool "ifconfig"
default n