Re: Negation of Remote_Addr in SetEnvIf directive

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

 




Apache 2.0 and later uses PCRE, and neither of those expressions mean
what you're describing.  SetEnvIf itself doesn't negate the result of
the regex match with a flag.

I don't fully understand your logic, but If you want your SetEnvIf to
only take action when the remote address doesn't begin with "10.", try
something like:

^((?!10\.).+)

Thanks a lot this regex works like a charm.

[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