Bug 64146 - mod_proxy_hcheck is not compatible with h2/h2c protocol
Summary: mod_proxy_hcheck is not compatible with h2/h2c protocol
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_hcheck (show other bugs)
Version: 2.4.41
Hardware: PC
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2020-02-16 15:51 UTC by angeloxx
Modified: 2020-02-16 15:51 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description angeloxx 2020-02-16 15:51:04 UTC
Using this configuration:

 BalancerMember h2c://php73-a:443 hctemplate=serverstatus-php-v3 route=php73-a timeout=180 flushpackets=on
 BalancerMember h2c://php73-b:443 hctemplate=serverstatus-php-v3 route=php73-b timeout=180 flushpackets=on
 BalancerMember h2c://php73-c:443 hctemplate=serverstatus-php-v3 route=php73-c timeout=180 flushpackets=on

 ProxyHCTemplate serverstatus-php-v3 hcmethod=GET hcuri=/serverstatus-v2.php?waf-3 hcinterval=5 hcfails=4 hcpasses=2 hcexpr=goodstatus

mod_proxy_hcheck is unable to test the backend and the server state reamains in "HcFl" status. mod_proxy_hcheck should be patched to support h2 backend or - at minimum - enable the SSL support in hc_get_backend when h2c is set as backend protocol and a valid port is configured, even if the check is performed with HTTP/1.0.