Using SetEnvIf for QUERY_STRING

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

 



Hi, 

I am trying to use SetEnvIf with QUERY_STRING, but can't get it to work. This is being done inside the mod_deflate module block like: 

<IfModule mod_deflate.c>
SetEnvIf QUERY_STRING foo var=bar
LogFormat '"%q" "%{var}e"'
</IfModule>

...with a request like curl localhost?baz, the log has: 
"?baz" "-"

Other variables like REQUEST_METHOD work fine: 
<IfModule mod_deflate.c>
SetEnvIf REQUEST_METHOD GET var=bar
LogFormat '"%q" "%{var}e"'
</IfModule>
$ curl localhost?baz
"?baz" "bar"

Apache version is 2.2.22 on Ubuntu 12.04. 

Any ideas how to debug or fix this ? 

Thanks, 
Mohit

[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