disable mod_deflate per site or dir

disable mod_deflate per site or dir

am 26.06.2007 02:15:58 von Jason Morehouse

Hello,

We make use of mod_deflate on all of our sites. But there is a
particular page we need it disabled, as we need to utilize output
buffering with PHP. Is it possible to disable mod_deflate per
directory, or even site?

We are using apache 2.2.

Thanks!

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: disable mod_deflate per site or dir

am 26.06.2007 03:44:36 von Eric Covener

On 6/25/07, Jason Morehouse wrote:
> Hello,
>
> We make use of mod_deflate on all of our sites. But there is a
> particular page we need it disabled, as we need to utilize output
> buffering with PHP. Is it possible to disable mod_deflate per
> directory, or even site?
>
> We are using apache 2.2.
>

http://httpd.apache.org/docs/2.2/env.html (no-gzip)
http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv

Along with Directory/Location/Files container.

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: disable mod_deflate per site or dir

am 26.06.2007 04:31:17 von Tom Donovan

Jason Morehouse wrote:
> Hello,
>
> We make use of mod_deflate on all of our sites. But there is a
> particular page we need it disabled, as we need to utilize output
> buffering with PHP. Is it possible to disable mod_deflate per
> directory, or even site?
>
> We are using apache 2.2.
>

If you added the DEFLATE filter using AddOutputFilter, you can remove it
using RemoveOutputFilter.

You can do this for a single file by nesting within .

For example, this compresses all .php responses except for the response
from nocompress.php:


AddOutputFilter DEFLATE .txt .php .htm .html .cfm .xml .css .js

RemoveOutputFilter .php



-tom-

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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