From: Nick Kew This is the key directive for rewriting HTML links. When parsing a document,
whenever a link target matches from-pattern, the matching
portion will be rewritten to to-pattern, as modified by any
-flags supplied.<head>
sections.
The optional third argument may define any of the following Flags. Flags are case-sensitive.
@@ -191,6 +194,7 @@ in mod_proxy_html 3.x for HTTPD 2.0 and 2.2 is also supported.Set to Off
, HTML links are rewritten according
+
Set to Off
, HTML links are rewritten according to the
Set to On
, all scripting events and embedded scripts or
+
Set to On
, all scripting events (as determined by
+
+You'll also need to take care over patterns matched, since the parser has no
+knowledge of what is a URL within an embedded script or stylesheet.
+In particular, extended matching of /
is likely to lead to
+false matches.
+
In order to parse non-HTML content (stylesheets and scripts), mod_proxy_html +
In order to parse non-HTML content (stylesheets and scripts) embedded +in HTML documents, mod_proxy_html has to read the entire script or stylesheet into a buffer. This buffer will be expanded as necessary to hold the largest script or stylesheet in a page, -in increments of [nnnn] as set by this directive.
+in increments of bytes as set by this directive.The default is 8192, and will work well for almost all pages. However,
-if you know you're proxying a lot of pages containing stylesheets and/or
+if you know you're proxying pages containing stylesheets and/or
scripts bigger than 8K (that is, for a single script or stylesheet,
NOT in total), it will be more efficient to set a larger buffer
size and avoid the need to resize the buffer dynamically during a request.
@@ -338,11 +352,14 @@ size and avoid the need to resize the buffer dynamically during a request.
for earlier 2.x versions
Specifies one or more attributes to treat as scripting events and
-apply The default configuration defines the events in standard HTML 4
-and XHTML 1. Normally you'll set this globally. If you set ProxyHTMLEvents in more than
+one scope so that one overrides the other, you'll need to specify a complete
+set in each of those scopes. A default configuration is supplied in proxy-html.conf
+and defines the events in standard HTML 4 and XHTML 1.ProxyHTMLEvents
directives.
Specifies elements that have URL attributes that should be rewritten
using standard
The default configuration defines the HTML links for standard HTML 4 -and XHTML 1.
+Normally you'll set this globally. If you set ProxyHTMLLinks in more than +one scope so that one overrides the other, you'll need to specify a complete +set in each of those scopes.
+A default configuration is supplied in proxy-html.conf +and defines the HTML links for standard HTML 4 and XHTML 1.