From: Christophe Jaillet n flag forces the pattern to be treated
as a fixed string.
ff 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.qq 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"<
ProxyPassReverse
modifies any Location (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.
@@ -141,7 +141,7 @@ Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"<
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"<
Example
<Location "/">
AddOutputFilterByType SUBSTITUTE text/html
SubstituteMaxLineLength 10m
- Substitute s/foo/bar/ni
+ Substitute "s/foo/bar/ni"
</Location>