[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Upgrade to Apache 2.4 breaks encoding in a PerlOutputFilterHandler
From: Jie Gao <J.Gao () sydney ! edu ! au>
Date: 2015-11-30 23:21:51
Message-ID: 20151130232150.GA3997 () inforich ! ucc ! usyd ! edu ! au
[Download RAW message or body]
Hi Vincent
Thanks for sharing your solution.
Regards,
Jie
* Vincent Veyron <vv.lists@wanadoo.fr> wrote:
> Date: Sun, 29 Nov 2015 19:15:20 +0100
> From: Vincent Veyron <vv.lists@wanadoo.fr>
> To: Jie Gao <J.Gao@sydney.edu.au>
> CC: modperl@perl.apache.org
> Subject: Re: Upgrade to Apache 2.4 breaks encoding in a
> PerlOutputFilterHandler
> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.10; i486-pc-linux-gnu)
>
> On Sun, 29 Nov 2015 19:59:28 +1100
> Jie Gao <J.Gao@sydney.edu.au> wrote:
> >
> > Well, check out this: \
> > https://perl.apache.org/docs/2.0/user/handlers/filters.html#C_PerlOutputFilterHandler_ \
> > .
>
> Hi Jie,
>
> Yes, the instructions on this page work well; but with those, I need to add \
> 'SetOutputFilter DEFLATE' in every virtual host.
> I use a global configuration in deflate.conf, and got it to work in 2.4 by \
> replacing :
> # AddOutputFilterByType DEFLATE text/html text/plain text/xml \
>
> with this:
>
> FilterDeclare COMPRESS CONTENT_SET
> FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m#^text/(html|plain)#"
> FilterChain COMPRESS
> FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
>
> Which places mod_deflate after my PerlOutputFilterHandler in the chain.
>
> I was surprised nobody else had the problem before, though?
>
> --
> Bien à vous, Vincent Veyron
>
> https://marica.fr/
> Suivi des contentieux juridiques, des sinistres d'assurance et des contrats
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic