You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gabi <ga...@idieikon.com> on 2004/07/01 09:07:58 UTC

Content compression in Tomcat

Hi!
I'm trying to compress the served jsp.
As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip
apache module, but this have some problems (I'll use SSL in apache too, and
mod_ssl+mod_gzip does not work very well in combination) so I wonder how
with my configuration can I configure tomcat to compress the generated jsp.
Is there some kind of directive or filter or something to do this? Is it
possible?
How can I do it? (I'm a newbie so please explain me what and where I've to
configure?


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Content compression in Tomcat

Posted by Gabi <ga...@idieikon.com>.
Not exactly, I donĀ“t want to compress ssl, I want Tomcat to compress the jsp
file, then Apache will make the SSL.

>Hi,
>why should you compress it? ssl does that job for you already... (I think
;))
>But don't know how you can configure compression for ssl...


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Content compression in Tomcat

Posted by Pieter Vandepitte <Pi...@CC.KULEUVEN.AC.BE>.
Hi,
why should you compress it? ssl does that job for you already... (I think ;))
But don't know how you can configure compression for ssl...

On Thursday 01 July 2004 09:07, Gabi wrote:
> Hi!
> I'm trying to compress the served jsp.
> As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip
> apache module, but this have some problems (I'll use SSL in apache too, and
> mod_ssl+mod_gzip does not work very well in combination) so I wonder how
> with my configuration can I configure tomcat to compress the generated jsp.
> Is there some kind of directive or filter or something to do this? Is it
> possible?
> How can I do it? (I'm a newbie so please explain me what and where I've to
> configure?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Content compression in Tomcat

Posted by David Rees <dr...@greenhydrant.com>.
Gabi wrote:
> I'm trying to compress the served jsp.
> As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip
> apache module, but this have some problems (I'll use SSL in apache too,
> and
> mod_ssl+mod_gzip does not work very well in combination) so I wonder how
> with my configuration can I configure tomcat to compress the generated
> jsp.
> Is there some kind of directive or filter or something to do this? Is it
> possible?
> How can I do it? (I'm a newbie so please explain me what and where I've to
> configure?

There is a compression filter in Tomcat which you can use, but if you can
upgrade to Apache2, you can then use mod_deflate which I find works very
well (and integrates perfectly with SSL content as well).

-Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Content compression in Tomcat

Posted by Peter Rossbach <pr...@objektpark.de>.
Hello,

look at the Compression Filter example at the tomcat distribution
    webapps\examples\WEB-INF\classes\compressionFilters
Also read some of the javaworld articles
http://www.javaworld.com/channel_content/jw-servlets-index.shtml
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

regards
Peter

Gabi schrieb:

>Hi!
>I'm trying to compress the served jsp.
>As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip
>apache module, but this have some problems (I'll use SSL in apache too, and
>mod_ssl+mod_gzip does not work very well in combination) so I wonder how
>with my configuration can I configure tomcat to compress the generated jsp.
>Is there some kind of directive or filter or something to do this? Is it
>possible?
>How can I do it? (I'm a newbie so please explain me what and where I've to
>configure?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org