httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] SetEnvIfNoCase regex help
Date Thu, 05 Oct 2006 19:24:39 GMT
On 10/5/06, Fenlason, Josh <jfenlason@ptc.com> 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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message