From 211e449adf2bbff717aaec7c73efea09d86d829e Mon Sep 17 00:00:00 2001
From: Christophe Jaillet n
flag forces the pattern to be treated
as a fixed string.
f
f
flag causes mod_substitute to flatten the
+ f
flag causes mod_substitute
to flatten the
result of a substitution allowing for later substitutions to
take place on the boundary of this one. This is the default.q
q
flag causes mod_substitute to not
+ q
flag causes mod_substitute
to not
flatten the buckets after each substitution. This can
result in much faster response and a decrease in memory
utilization, but should only be used if there is no possibility
@@ -86,7 +86,7 @@
Example
<Location "/">
AddOutputFilterByType SUBSTITUTE text/html
- Substitute s/foo/bar/ni
+ Substitute "s/foo/bar/ni"
</Location>
In this case, mod_substutite
can be used to rewrite
+
In this case, mod_substitute
can be used to rewrite
those URLs into something that will work from the front end:
ProxyPass "/blog/" "http://internal.blog.example.com" @@ -126,7 +126,7 @@ Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"<@@ -141,7 +141,7 @@ Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"<
ProxyPassReverse
modifies anyLocation
(redirect) headers that are sent by the back-end server, and, in this example, -Substitute
takes care of the rest of the problem by +Substitute
takes care of the rest of the problem by fixing up the HTML response as well.Override: FileInfo Status: Extension - Module: mod_substitute + Compatibility: Available in httpd 2.5 and later Compatibility: Available in httpd 2.4.17 and later Whether to apply the inherited
Substitute
patterns first (on
), or after the ones of the current @@ -179,7 +179,7 @@ Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"<-- 2.50.1Example
<Location "/"> AddOutputFilterByType SUBSTITUTE text/html SubstituteMaxLineLength 10m - Substitute s/foo/bar/ni + Substitute "s/foo/bar/ni" </Location>