Hi,

While testing we noted the doc example for ProxyHCExpr/ProxyHCTemplate
might be misleading:

For example:
ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
ProxyPass "/apps"     "http://backend.example.com/"; hcexpr=ok234

Should be changed to something:

ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
ProxyPass "/apps"     "balancer://foo"
<Proxy balancer://foo>
  BalancerMember http://backend.example.com hcexpr=ok234 hcmethod=GET
hcuri=/
</Proxy>

Note that testing the STATUS won't work here, if there is not headers
(hc_read_headers doesn't return OK) so a 400 won't be tested anyway :-(

Did we miss something? Should I fix the examples of the doc?

Cheers

Jean-Frederic

Reply via email to