You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2026/04/29 20:52:18 UTC

svn commit: r1933559 - httpd/httpd/trunk/docs/manual/mod

Author: rbowen
Date: Wed Apr 29 20:52:17 2026
New Revision: 1933559

Log:
mod_proxy: Warn about ProxyPassMatch backreference worker matching and connection pooling (Bug 62167, related to Bug 43513)

Modified:
   httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml	Wed Apr 29 20:46:16 2026	(r1933558)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml	Wed Apr 29 20:52:17 2026	(r1933559)
@@ -1578,6 +1578,24 @@ when the <var>url</var> parameter contai
     <note><strong>Note: </strong>This directive cannot be used within a
     <code>&lt;Directory&gt;</code> context.</note>
 
+    <note type="warning"><title>Worker matching with backreferences</title>
+    <p>When <directive>ProxyPassMatch</directive> contains
+    backreferences (e.g., <code>$1</code>) in the target URL, each
+    request produces a different resolved URL. Because <a
+    href="#workers">workers</a> are matched by URL, these requests
+    will not match the worker created by this directive and will
+    instead use the default reverse proxy worker, which does not
+    reuse connections or cache DNS lookups. To enable connection
+    pooling, define an explicit worker for the backend separately:</p>
+    <highlight language="config">
+ProxyPass        "/notused" "http://backend.example.com/" connectiontimeout=5 timeout=30
+ProxyPassMatch   "^/(.*\.gif)$" "http://backend.example.com/$1"
+    </highlight>
+    <p>The explicit <directive>ProxyPass</directive> worker definition
+    ensures that the backend connection pool is available for use by
+    <directive>ProxyPassMatch</directive> requests.</p>
+    </note>
+
     <p>Suppose the local server has address <code>http://example.com/</code>;
     then</p>