]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Improve docs note on PR 46665 (ProxyPassMatch buglet) as suggested by wrowe
authorNick Kew <niq@apache.org>
Thu, 27 Aug 2009 16:18:19 +0000 (16:18 +0000)
committerNick Kew <niq@apache.org>
Thu, 27 Aug 2009 16:18:19 +0000 (16:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@808489 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_proxy.xml

index 540450dfdb6ed9681f4952d9c6d02f74afcf8620..dded018d46d693eb067bdd927d287052faa7e85d 100644 (file)
@@ -945,10 +945,18 @@ expressions</description>
     <code>http://example.com/foo/bar.gif</code> to be internally converted
     into a proxy request to <code>http://backend.example.com/foo/bar.gif</code>.</p>
     <note><title>Note</title>
-      The URL argument must be parsable as a URL <em>before</em> regexp
+      <p>The URL argument must be parsable as a URL <em>before</em> regexp
       substitutions (as well as after).  This limits the matches you can use.
-      See <a href="https://issues.apache.org/bugzilla/show_bug.cgi">PR 46665</a>
-      for details and workaround ideas.
+      For instance, if we had used</p>
+      <example>
+        ProxyPassMatch ^(/.*\.gif)$ http://backend.example.com:8000$1
+      </example>
+      <p>in our previous example, it would fail.  This is a bug
+      (PR 46665 in the ASF bugzilla), and the workaround is to
+      reformulate the match, so the above will work if expressed as</p>
+      <example>
+        ProxyPassMatch ^/(.*\.gif)$ http://backend.example.com:8000/$1
+      </example>
     </note>
 
     <p>The <code>!</code> directive is useful in situations where you don't want