httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: Work in progress: mod_proxy Health Check module
Date Tue, 29 Dec 2015 21:28:39 GMT
There is a somewhat easy way to do this via leveraging the
functionality of SetEnvIfExpr. For example, what I am testing
is the idea of:

	SetEnvIfCond "-R '' || -R '' || -R ''" rfc1918

Which creates and stores *but does not evaluate* the above expression,
which is called 'rfc1918' (ie: the name of the envvar also serves as the
name/label of the condition).

We can then call:

	EvalEnvfIfCond rfc1918

which will then evaluate the expression at *that* time, and
set/unset the 'rfc1918' envvar as required.

> On Dec 29, 2015, at 3:21 PM, Jim Jagielski <> wrote:
> I've been mulling over having the check return
> the response headers which can then be checked/verified using
> our Expression routines ala <If>. eg:
> 	Condition all_good "%{REQUEST_STATUS} in { '200', '304' }"
> And there is a 'check' mini-directive:
> 	BalancerMember method=get check=all_good
> which uses the stored condition for the pass/fail test.

View raw message