httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Chawla <mohit.chawla.bin...@gmail.com>
Subject [users@httpd] Using SetEnvIf for QUERY_STRING
Date Wed, 27 Jul 2016 16:47:24 GMT
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

Mime
View raw message