From: Nick Kew Date: Sun, 30 Aug 2009 02:57:58 +0000 (+0000) Subject: Fix up doc note on ProxyPassMatch quirks - this wording seems to have X-Git-Tag: 2.3.3~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79f90cac62e6793e56b2054521a9606b73287165;p=apache Fix up doc note on ProxyPassMatch quirks - this wording seems to have got accepted in 2.2.x. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@809241 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 371e2a5ca4..4a2f0b4157 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -959,10 +959,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 with a syntax error + at server startup. This is a bug (PR 46665 in the ASF bugzilla), + and the workaround is to reformulate the match:

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

The ! directive is useful in situations where you don't want to reverse-proxy a subdirectory.