Re: Using SetEnvIf for query string

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

 



On Fri, Jul 29, 2016 at 12:47 PM, Mohit Chawla
<mohit.chawla.binary@xxxxxxxxx> wrote:
> Hi,
>
> I am trying to use SetEnvIf with QUERY_STRING, but can't get it to work.

The QUERY_STRING variable is not recognized by SetEnvif (see [1] for
the list), hence it is considered a header name.

You may want to use mod_rewrite's RewriteCond/RewriteRule instead ([2]), e.g.:
  RewriteCond "%{QUERY_STRING}" "baz"
  RewriteRule ^ - [E=var:bar]

Regards,
Yann.

[1] https://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif
[2] http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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