From: Nick Kew Date: Thu, 27 Aug 2009 16:18:19 +0000 (+0000) Subject: Improve docs note on PR 46665 (ProxyPassMatch buglet) as suggested by wrowe X-Git-Tag: 2.2.14~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ca5674805230d6527a3ee47148c649ccdf0de12;p=thirdparty%2Fapache%2Fhttpd.git Improve docs note on PR 46665 (ProxyPassMatch buglet) as suggested by wrowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@808489 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 540450dfdb6..dded018d46d 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -945,10 +945,18 @@ expressions http://example.com/foo/bar.gif to be internally converted into a proxy request to http://backend.example.com/foo/bar.gif.

Note - The URL argument must be parsable as a URL before regexp +

The URL argument must be parsable as a URL before regexp substitutions (as well as after). This limits the matches you can use. - See PR 46665 - for details and workaround ideas. + For instance, if we had used

+ + ProxyPassMatch ^(/.*\.gif)$ http://backend.example.com:8000$1 + +

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

+ + ProxyPassMatch ^/(.*\.gif)$ http://backend.example.com:8000/$1 +

The ! directive is useful in situations where you don't want