]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy: Fix selection of ProxyPassMatch workers with host/port substitution. PR...
authorYann Ylavic <ylavic@apache.org>
Thu, 1 Aug 2024 11:35:26 +0000 (11:35 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 1 Aug 2024 11:35:26 +0000 (11:35 +0000)
commit2f1f9c5df027e86bf4c3dbdb96c9e52748421c20
treee186b3c9ffbb791eb7091d003f03f5b8d5a276fc
parent0838e04da443bc9c76c3f12b7b67f1fedd7a9581
mod_proxy: Fix selection of ProxyPassMatch workers with host/port substitution. PR 69233.

With "ProxyPassMatch ^/([^/]+)/(.*)$ https://$1/$2", ap_proxy_get_worker_ex()
should not consider the length of scheme://host part of the given URL because
of the globbing match on the host part.

Fix it by setting worker->s>is_host_matchable when creating a worker with host
substitution and avoiding the min_match check in worker_matches() in this case.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919617 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/bz69233.txt [new file with mode: 0644]
include/ap_mmn.h
modules/proxy/mod_proxy.h
modules/proxy/proxy_util.c