httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] SetEnvIfNoCase regex help
Date Thu, 05 Oct 2006 19:24:39 GMT
On 10/5/06, Fenlason, Josh <> wrote:
> I'm trying to set no-gzip dont-vary when the content-type is
> "application/pdf" or "application/zip", but I'm having trouble getting the
> regex portion of the SetEnvIfNoCase directive right.  Here's what I have so
> far that doesn't work:
>     SetEnvIfNoCase Content-Type \
>     ^(application/pdf|application/zip)$ no-gzip dont-vary
> If anyone has any tips or suggestions, I would be extremely grateful.
> Thanks in advance.

SetEnvIf matches request headers, not response headers.  So this won't
work at all.

You can either set the variables based on characteristics of the
request (like the Request_URI), or you can use mod_filter (in 2.2) to
activate the filter based on response content type.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message