From: Rich Bowen Date: Tue, 5 May 2026 21:07:21 +0000 (+0000) Subject: docs: Clarify that ErrorDocument text strings are served as text/html, with multi... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67d58f77d1e1efde422e02e948fa23e6ed38d612;p=thirdparty%2Fapache%2Fhttpd.git docs: Clarify that ErrorDocument text strings are served as text/html, with multi-line HTML example (PR 61152) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933866 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index ed22cf463f..90d5b62802 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -1506,6 +1506,22 @@ ErrorDocument 403 Forbidden! ErrorDocument 403 /errors/forbidden.py?referrer=%{escape:%{HTTP_REFERER}} +

When the argument is a text string (i.e., not a path or URL), + it is sent to the client with a content type of + text/html, so you may include HTML markup. You can + use the backslash line-continuation character to spread the + document across multiple lines:

+ + +ErrorDocument 403 "\ +<html><head>\ +<title>403 Forbidden</title>\ +</head><body>\ +<h1>Forbidden</h1>\ +<p>You do not have permission to access this resource.</p>\ +</body></html>" + +

Additionally, the special value default can be used to specify Apache httpd's simple hardcoded message. While not required under normal circumstances, default will restore