Apache 2.4.41 checking env variable error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Apache experts,

 

We are in the process of upgrading apache for linux from 2.2 to 2.4.41.

We have a SSLRequire access control directive in the httpd configuration file as below

<Directory />

    Options FollowSymLinks

    AllowOverride None

    SSLRequire %{XYZ} == "SUCCESS" || %{REQUEST_URI} == "/xyz/register/register.rq"

</Directory>

 

The above works fine with 2.2. After upgrade to 2.4, getting error message "SSLRequire: Variable 'XYZ' does not exist"

As SSLRequire is deprecated in 2.4, I have replaced "SSLRequire" with "Require" as below.

<Directory />

    Options FollowSymLinks

    AllowOverride None

    Require env XYZ || (expr %{REQUEST_URI} == "/xyz/register/register.rq")

</Directory>

 

The above works. But the "env" allows to check the existence of environment variable, it does not support checking the value.

What is the syntax to check the value of environment variable in "Require".

 

Thanks in advance,

 

Regards,

Salim


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux