From 211e449adf2bbff717aaec7c73efea09d86d829e Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sat, 14 May 2016 07:17:33 +0000 Subject: [PATCH] xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1743790 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_substitute.html.en | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/manual/mod/mod_substitute.html.en b/docs/manual/mod/mod_substitute.html.en index 0057cdf74f..5e1dbaffda 100644 --- a/docs/manual/mod/mod_substitute.html.en +++ b/docs/manual/mod/mod_substitute.html.en @@ -72,11 +72,11 @@ Using the n flag forces the pattern to be treated as a fixed string.
f
-
The f flag causes mod_substitute to flatten the +
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
-
The q flag causes mod_substitute to not +
The 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>
@@ -114,7 +114,7 @@ to the back-end server. These URLs don't work for the end-user, since the back-end server is unreachable.

-

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:

Rewriting URLs embedded in proxied content

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>
-- 2.50.1