httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Health check expressions
Date Thu, 13 Feb 2020 12:16:19 GMT
On Wed, Feb 5, 2020 at 6:45 AM Antony Stone
<Antony.Stone@apache.open.source.it> wrote:
>
> Hi.
>
> I'm using Apache as a load-balancing proxy, following
> https://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html and
> https://httpd.apache.org/docs/2.4/mod/mod_proxy_hcheck.html as guides to
> setting it up.
>
> I've got it working fine when I use %{REQUEST_STATUS} in the health check
> expression, but I'd like to use the content type of the returned header for
> the health check.
>
> Following the "expression" link from the hcheck page and looking at
> https://httpd.apache.org/docs/2.4/expr.html I think I should be able to use
> %{CONTENT_TYPE} but this always returns status HcFl.
>
> Is there a list of what I can use in ProxyHCExpr definitions somewhere, other
> than the two examples (request status, and body content) shown on the above
> page?
>
> Any idea how to check the content-type of the returned response?

Have you tried reading the value of the Content-Type response header
instead of this built-in var?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message