httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: [users@httpd] Apache 2.4.41 checking env variable value
Date Thu, 14 Nov 2019 18:33:34 GMT
On Thu, Nov 14, 2019 at 7:08 PM Salim Abdul -X (salimabd - HCL
TECHNOLOGIES LIMITED at Cisco) <salimabd@cisco.com.invalid> wrote:
>
> Hi Experts,
>
>
>
> I want to check the value of an environment variable which is already set.
>
>
>
> <Directory />
>
>     AllowOverride None
>
>     Require env XYZ == ‘SUCCESS’ || expr “%{REQUEST_URI} == ‘/xyz/register/register.rq’"

Something like this should work:
  Require expr “env('XYZ') == 'SUCCESS' || %{REQUEST_URI} ==
'/xyz/register/register.rq'"

>
> </Directory>

Regards,
Yann.

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


Mime
View raw message