Re: [users@httpd] Using SetEnvIf for query string

2016-07-29 Thread Mohit Chawla
Thanks Yann, that worked perfectly ! On Fri, Jul 29, 2016 at 1:24 PM, Yann Ylavic wrote: > On Fri, Jul 29, 2016 at 12:47 PM, Mohit Chawla > 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

Re: [users@httpd] Using SetEnvIf for query string

2016-07-29 Thread Yann Ylavic
On Fri, Jul 29, 2016 at 12:47 PM, Mohit Chawla 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 Rewrite

[users@httpd] Using SetEnvIf for query string

2016-07-29 Thread Mohit Chawla
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: SetEnvIf QUERY_STRING "baz" var=bar LogFormat '"%q" "%{var}e"' ...with a request like curl localhost?baz, the log has: "?baz" "-" Other variables like REQU