Adding
Index: modules/proxy/mod_proxy_balancer.c
===================================================================
--- modules/proxy/mod_proxy_balancer.c  (revision 1824256)
+++ modules/proxy/mod_proxy_balancer.c  (working copy)
@@ -1117,6 +1117,7 @@
     const char *action;
     apr_status_t rv;
 
+    ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r, "check, if request for 
balancer");
     /* is this for us? */
     if (strcmp(r->handler, "balancer-manager")) {
         return DECLINED;

and config
LogLevel proxy:trace1
LogLevel proxy_balancer:trace1

I get for a request against https://test.example.org:12346/proxy/002.jpg

[Wed Feb 14 18:04:09.231668 2018] [proxy:trace1] [pid 62513:tid 
123145351254016] mod_proxy.c(749): [client 127.0.0.1:51975] AH03464: URI path 
'/proxy/002.jpg' matches proxy handler 'proxy:balancer://https-local/002.jpg', 
referer: https://test.example.org:12346/
[Wed Feb 14 18:04:09.231800 2018] [proxy_balancer:trace1] [pid 62513:tid 
123145351254016] mod_proxy_balancer.c(85): [client 127.0.0.1:51975] 
canonicalising URL //https-local/002.jpg, referer: 
https://test.example.org:12346/
[Wed Feb 14 18:04:09.231821 2018] [proxy_balancer:debug] [pid 62513:tid 
123145351254016] mod_proxy_balancer.c(632): [client 127.0.0.1:51975] AH01172: 
balancer://https-local: worker () rewritten to /002.jpg, referer: 
https://test.example.org:12346/
[Wed Feb 14 18:04:09.231830 2018] [proxy:debug] [pid 62513:tid 123145351254016] 
proxy_util.c(1772): AH00924: worker  shared already initialized
[Wed Feb 14 18:04:09.231837 2018] [proxy:debug] [pid 62513:tid 123145351254016] 
proxy_util.c(1814): AH00926: worker  local already initialized
[Wed Feb 14 18:04:09.231845 2018] [proxy:debug] [pid 62513:tid 123145351254016] 
mod_proxy.c(1229): [client 127.0.0.1:51975] AH01143: Running scheme balancer 
handler (attempt 0), referer: https://test.example.org:12346/
[Wed Feb 14 18:04:09.231854 2018] [proxy:warn] [pid 62513:tid 123145351254016] 
[client 127.0.0.1:51975] AH01144: No protocol handler was valid for the URL 
/proxy/002.jpg (scheme 'balancer'). If you are using a DSO version of 
mod_proxy, make sure the proxy submodules are included in the configuration 
using LoadModule., referer: https://test.example.org:12346/
[Wed Feb 14 18:04:09.231862 2018] [proxy_balancer:debug] [pid 62513:tid 
123145351254016] mod_proxy_balancer.c(689): [client 127.0.0.1:51975] AH01176: 
proxy_balancer_post_request for (balancer://https-local), referer: 
https://test.example.org:12346/
[Wed Feb 14 18:04:34.139205 2018] [proxy:debug] [pid 62476:tid 123145336594432] 
proxy_util.c(2154): AH00942: HCOH: has acquired connection for (127.0.0.1)
[Wed Feb 14 18:04:34.139506 2018] [proxy:debug] [pid 62476:tid 123145336594432] 
proxy_util.c(2883): AH02824: HCOH: connection established with 127.0.0.1:12345 
(127.0.0.1)
[Wed Feb 14 18:04:34.139546 2018] [proxy:debug] [pid 62476:tid 123145336594432] 
proxy_util.c(3053): AH00962: HCOH: connection complete to 127.0.0.1:12345 
(127.0.0.1)
[Wed Feb 14 18:04:34.139673 2018] [proxy_balancer:trace1] [pid 62513:tid 
123145356083200] mod_proxy_balancer.c(1120): [client 127.0.0.1:51985] check, if 
request for balancer
[Wed Feb 14 18:04:34.139876 2018] [proxy:debug] [pid 62476:tid 123145336594432] 
proxy_util.c(2169): AH00943: HCOH: has released connection for (127.0.0.1)

This looks not right, certainly? Seems like the balancer hook is not invoked on 
the request. But later on connection release, it is?

Not really the expert here. Need to run now, will check this again tomorrow.
Cheers,

-Stefan


> Am 14.02.2018 um 17:36 schrieb Yann Ylavic <ylavic....@gmail.com>:
> 
> On Wed, Feb 14, 2018 at 5:16 PM, Stefan Eissing
> <stefan.eiss...@greenbytes.de> wrote:
>> In my h2 test suite, I get on the 2.4.x branch a no longer working propxy 
>> setup.
>> 
>> error_log shows
>> [Wed Feb 14 17:11:35.996712 2018] [proxy:warn] [pid 69638:tid 
>> 123145425334272] [client 127.0.0.1:50616] AH01144: No protocol handler was 
>> valid for the URL /proxy/index.html (scheme 'balancer'). If you are using a 
>> DSO version of mod_proxy, make sure the proxy submodules are included in the 
>> configuration using LoadModule.
>> 
>> Same setup works flawlessly on trunk.
>> 
>> config basically is
>> 
>>    <Proxy "balancer://http-local">
>>        BalancerMember "http://127.0.0.1:12345"; hcmethod=GET hcuri=/
>>    </Proxy>
>> 
>>    <VirtualHost...>
>> 
>>      ProxyPass "/proxy" "balancer://http-local"
>>      ProxyPassReverse "/proxy" "balancer://http-local"
>>    </VirtualHost>
>> 
>> Compiled clean several times already. Did we miss something on the backport?
> 
> Hmm, this works here.
> Don't you have some builtin mod_proxy_* module (e.g.
> enable-proxy_balancer=static or alike)?

Reply via email to