The ProxyRemoteMatch directive is supposed to use a regex to redirect certain proxy requests to a
remote proxy server (as I understand the documentation). I actually needed that for a configuration (see
below) and was puzzled to find that it doesn't work: (line numbers from APACHE_2_0_BRANCH, because
I can't find a web interface to svn.)
389 : p2 = ap_strchr_c(ents[i].scheme, ':'); /* is it a partial URL? */
390 : if (strcmp(ents[i].scheme, "*") == 0 ||
391 : (ents[i].use_regex && ap_regexec(ents[i].regexp, url, 0,NULL, 0)) ||
392 : (p2 == NULL && strcasecmp(scheme, ents[i].scheme) == 0) ||
393 : (p2 != NULL &&
394 : strncasecmp(url, ents[i].scheme, strlen(ents[i].scheme)) == 0)) {
ap_regexec returns 0 on success, so the condition in line 391 matches if the regex didn't match, which
is the reverse of the expected behaviour. Changing line 391 to
391 : (ents[i].use_regex && ap_regexec(ents[i].regexp, url, 0,NULL, 0) == 0) ||
produced the expected behaviour.
This code seems to have been unchanged since the directive was introduced in 2.0.35, almost three
years ago, and I cannot find any relevant bug reports; in fact, googling for ProxyRemoteMatch did not
yield any indication that anyone has ever tried to use the directive, much less succeeded. This would
seem to be a reasonable case for deleting the directive

This is ASF Bugzilla: the Apache Software Foundation bug system. In case
of problems with the functioning of ASF Bugzilla, please contact
bugzilla-admin@apache.org.
Please Note: this e-mail address is only for reporting problems
with ASF Bugzilla. Mail about any other subject will be silently
ignored.