From: Nick Kew Date: Fri, 8 May 2020 22:39:36 +0000 (+0000) Subject: Update mod_proxy_html docs to reflect X-Git-Tag: 2.5.0-alpha2-ci-test-only~1460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef70e1267a45cb0233767f2e54a08f0c4fc87b0;p=thirdparty%2Fapache%2Fhttpd.git Update mod_proxy_html docs to reflect https://lists.apache.org/thread.html/rc26df3094f42cfa742690282b4430483d56f85f3e033337b1a08ec53%40%3Cusers.httpd.apache.org%3E git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877522 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy_html.xml b/docs/manual/mod/mod_proxy_html.xml index 480a8060b15..9d33112bf23 100644 --- a/docs/manual/mod/mod_proxy_html.xml +++ b/docs/manual/mod/mod_proxy_html.xml @@ -125,25 +125,20 @@ versions where filter directives were used to activate mod_proxy_html.< module for earlier 2.x versions. + +

ProxyHTMLMeta was part of i18n support in earlier mod_proxy_html + versions, including those for Apache HTTPD 2.0 and 2.2. + That functionality has now been separated out into the separate + module mod_xml2enc. ProxyHTMLMeta no longer + serves any purpose likely to be useful in an operational server, + though it might serve as a testing/debugging aid for developers + of software such as browsers.

+
+

This turns on or off pre-parsing of metadata in HTML <head> sections.

-

If not required, turning ProxyHTMLMeta Off will give a small - performance boost by skipping this parse step. However, it - is sometimes necessary for internationalisation to work correctly.

-

ProxyHTMLMeta has two effects. Firstly and most importantly - it enables detection of character encodings declared in the form

-
<meta http-equiv="Content-Type" content="text/html;charset=foo">
-

or, in the case of an XHTML document, an XML declaration. - It is NOT required if the charset is declared in a real HTTP header - (which is always preferable) from the backend server, nor if the - document is utf-8 (unicode) or a subset such as ASCII. - You may also be able to dispense with it where documents use a - default declared using xml2EncDefault, but that risks propagating an - incorrect declaration. A ProxyHTMLCharsetOut - can remove that risk, but is likely to be a bigger processing - overhead than enabling ProxyHTMLMeta.

-

The other effect of enabling ProxyHTMLMeta is to parse all + +

Enabling ProxyHTMLMeta will parse all <meta http-equiv=...> declarations and convert them to real HTTP headers, in keeping with the original purpose of this form of the HTML <meta> element.

@@ -510,6 +505,12 @@ normally be used, as any change from the default UTF-8 processing overhead. The special token ProxyHTMLCharsetOut * will generate output using the same encoding as the input.

Note that this relies on mod_xml2enc being loaded.

+ +

This does not support encoding HTML Entities. If a document contains +characters that cannot be represented in the target charset, it will +fail and the document is likely to be corrupted. This applies even if +such characters are represented as entities in the input document.

+