Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes-entries/proxy-html-doctype-libxml2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mod_proxy_html: Reject "ProxyHTMLDocType HTML|XHTML" if built with
libxml2 2.14 or later, with which HTML 4 documents can no longer
be cleaned up. [Joe Orton]
3 changes: 3 additions & 0 deletions changes-entries/proxy-html-maxbufsize.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mod_proxy_html: Add ProxyHTMLMaxBufSize, 1M by default; a larger
inline script, stylesheet or comment is passed through without
being rewritten by ProxyHTMLExtended. [Joe Orton]
3 changes: 3 additions & 0 deletions changes-entries/proxy-html-urlmap-regex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mod_proxy_html: Fix a crash if a ProxyHTMLURLMap regex using
interpolated variables was invalid, and fail at startup for any
other invalid regex. [Joe Orton]
30 changes: 30 additions & 0 deletions docs/manual/mod/mod_proxy_html.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ will also clean up the HTML to the specified standard. It cannot
fix every error, but it will strip out bogus elements and attributes.
It will also optionally log other errors at <directive
module="core">LogLevel</directive> Debug.</p>
<note>The first form relies on the description of HTML 4 which
libxml2 provided up to version 2.13. If <module>mod_proxy_html</module>
is built with libxml2 2.14 or later, the first form is not available and
is rejected as a configuration error. To declare such a document type
without the clean-up, give it in the second form.</note>
</usage>
</directivesynopsis>

Expand Down Expand Up @@ -424,6 +429,31 @@ size and avoid the need to resize the buffer dynamically during a request.
</usage>
</directivesynopsis>

<directivesynopsis>
<name>ProxyHTMLMaxBufSize</name>
<description>Sets the maximum size of an inline script, stylesheet or
comment which is rewritten.</description>
<syntax>ProxyHTMLMaxBufSize <var>bytes</var></syntax>
<default>ProxyHTMLMaxBufSize 1M</default>
<contextlist><context>server config</context>
<context>virtual host</context><context>directory</context>
</contextlist>
<compatibility>Available in version 2.5.1 and later.</compatibility>
<usage>
<p>With <directive module="mod_proxy_html">ProxyHTMLExtended</directive>
enabled, <module>mod_proxy_html</module> reads each inline script,
stylesheet or comment into memory in full before rewriting it. This
directive limits the size of that buffer. A script, stylesheet or comment
larger than <var>bytes</var> is passed through as received from the
backend, without any <directive module="mod_proxy_html"
>ProxyHTMLURLMap</directive> rule applied to it, and a warning is
logged.</p>
<p>The value may be followed by <code>K</code>, <code>M</code> or
<code>G</code> for kilobytes, megabytes or gigabytes. A value of
<code>0</code> removes the limit.</p>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>ProxyHTMLEvents</name>
<description>Specify attributes to treat as scripting events.</description>
Expand Down
Loading
Loading