Bug 65566 - When using hcmethod=GET the default path is ""
Summary: When using hcmethod=GET the default path is ""
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_hcheck (show other bugs)
Version: 2.4.34
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-10 00:39 UTC by hihellobolke
Modified: 2021-09-10 00:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hihellobolke 2021-09-10 00:39:28 UTC
When using configuration like below

```

ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
<Proxy balancer://myset>
  BalancerMember http://be-1:8081 hcmethod=GET hcexpr=ok234 hcinterval=3 hcpasses=3 hcfails=1
  BalancerMember http://be-2:8081 hcmethod=GET hcexpr=ok234 hcinterval=3 hcpasses=3 hcfails=1
  BalancerMember http://be-3:8081 hcmethod=GET hcexpr=ok234 hcinterval=3 hcpasses=3 hcfails=1
  ProxySet lbmethod=bytraffic
</Proxy>

```

Apache health check sends request with path as "" as below

```
GET  HTTP/1.0
Host: be-1:8081
```

This returns a Bad request, apache should default path to "/"