Re: How to conditionally enable mod_deflate?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 19, 2012 at 4:44 PM, Bhattacharya, Sudip
<sudip.bhattacharya@xxxxxxxxxxx> wrote:
> Hi All,
>
>
>
> I have a problem for which I am not able to find a solution.
>
>
>
> I need to conditionally enable mod_deflate for clients who send a particular
> custom HTTP Request Header.
>
> Let’s say this HTTP Request Header is like this:
>
> IWANTGZIPDATA=true
>
>
>
> Now my condition should be like this:
>
>
>
> If IWANTGZIPDATA=true then
>
>                 Enable gzip
>
> Else if IWANTGZIPDATA=false OR IWANTGZIPDATA is not present in request Then
>
>                 Disable gzip
>
> End if.
>
>
>

Enable mod_deflate, and use mod_setenvif, mod_headers or mod_rewrite
to set either the environment variable "force-gzip" or "no-gzip", as
documented on the mod_deflate manual page.

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux