You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kirti Teja <ki...@gmail.com> on 2008/06/16 17:26:24 UTC

problem gzipping dynamic content with apache+jk+tomcat configuration

Hi,


I use apache 2, tomcat 6.0.13 with modjk2.  When I added

 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
application/x-javascript text/javascript text/x-js

 in my httpd conf file, I see only static resources which are served by
apache getting gzipped.

Dynamic response (text/html)  which are served by tomcat through AJP
connector are not zipped.

I tried googling and found that there are more people who have this problem
but with no answers.


Can any one help me on this?



With Regards,

teja

Re: problem gzipping dynamic content with apache+jk+tomcat configuration

Posted by Len Popp <le...@gmail.com>.
Did you put AddOutputFilterByType in *all* the <Location> and
<Directory> sections? In particular, in the <Location> associated with
the Tomcat connector?
-- 
Len


On Mon, Jun 16, 2008 at 11:26, Kirti Teja <ki...@gmail.com> wrote:
> Hi,
>
>
> I use apache 2, tomcat 6.0.13 with modjk2.  When I added
>
>  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
> application/x-javascript text/javascript text/x-js
>
>  in my httpd conf file, I see only static resources which are served by
> apache getting gzipped.
>
> Dynamic response (text/html)  which are served by tomcat through AJP
> connector are not zipped.
>
> I tried googling and found that there are more people who have this problem
> but with no answers.
>
>
> Can any one help me on this?
>
>
>
> With Regards,
>
> teja
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Fwd: problem gzipping dynamic content with apache+jk+tomcat configuration

Posted by Kirti Teja <ki...@gmail.com>.
   AddOutputFilter DEFLATE html txt xml css js jsp do

adding this in httpd.conf did the trick. now i see even my dynamic reponses
gzipped.

thanks,
teja
---------- Forwarded message ----------
From: Rainer Jung <ra...@kippdata.de>
Date: Mon, Jun 16, 2008 at 9:18 PM
Subject: Re: problem gzipping dynamic content with apache+jk+tomcat
configuration
To: Tomcat Users List <us...@tomcat.apache.org>


Kirti Teja wrote:

> Hi,
>
>
> I use apache 2, tomcat 6.0.13 with modjk2.  When I added
>
>  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
> application/x-javascript text/javascript text/x-js
>
>  in my httpd conf file, I see only static resources which are served by
> apache getting gzipped.
>
> Dynamic response (text/html)  which are served by tomcat through AJP
> connector are not zipped.
>
> I tried googling and found that there are more people who have this problem
> but with no answers.
>
>
> Can any one help me on this?
>

Not before you are telling us your version of httpd and mod_jk ;)

It works for me with httpd 2.2.8 and mod_jk 1.2.26. I also added

   AddOutputFilter DEFLATE html txt xml css js jsp do

in addition to the AddOutputFilterByType.

If you use Firefox as a browser and install Firebug. What does it show you
as Content-Type and Content-Encoding of the response? What does it show as
Accept-Encoding for the request?

 With Regards,
>
> teja
>

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: problem gzipping dynamic content with apache+jk+tomcat configuration

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer,

Rainer Jung wrote:
| Kirti Teja wrote:
|> I use apache 2, tomcat 6.0.13 with modjk2.  When I added

[snip]

| Not before you are telling us your version of httpd and mod_jk ;)

She said she was using <shiver> mod_jk2, all versions of which should be
considered broken ;)

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhWxr8ACgkQ9CaO5/Lv0PBuKwCfbPSR/IXXMS612PJdkfHqsAQ5
CsIAoIYLNsYb33P3K14cU3iTW92Sod/o
=RGzH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem gzipping dynamic content with apache+jk+tomcat configuration

Posted by Kirti Teja <ki...@gmail.com>.
 AddOutputFilter DEFLATE html txt xml css js jsp do

did the trick.

Thankyou very much. Your help is just great thanks once again.

With Regards,
Teja R




On Mon, Jun 16, 2008 at 9:18 PM, Rainer Jung <ra...@kippdata.de>
wrote:

> Kirti Teja wrote:
>
>> Hi,
>>
>>
>> I use apache 2, tomcat 6.0.13 with modjk2.  When I added
>>
>>  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
>> application/x-javascript text/javascript text/x-js
>>
>>  in my httpd conf file, I see only static resources which are served by
>> apache getting gzipped.
>>
>> Dynamic response (text/html)  which are served by tomcat through AJP
>> connector are not zipped.
>>
>> I tried googling and found that there are more people who have this
>> problem
>> but with no answers.
>>
>>
>> Can any one help me on this?
>>
>
> Not before you are telling us your version of httpd and mod_jk ;)
>
> It works for me with httpd 2.2.8 and mod_jk 1.2.26. I also added
>
>    AddOutputFilter DEFLATE html txt xml css js jsp do
>
> in addition to the AddOutputFilterByType.
>
> If you use Firefox as a browser and install Firebug. What does it show you
> as Content-Type and Content-Encoding of the response? What does it show as
> Accept-Encoding for the request?
>
>  With Regards,
>>
>> teja
>>
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: problem gzipping dynamic content with apache+jk+tomcat configuration

Posted by Rainer Jung <ra...@kippdata.de>.
Kirti Teja wrote:
> Hi,
> 
> 
> I use apache 2, tomcat 6.0.13 with modjk2.  When I added
> 
>  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
> application/x-javascript text/javascript text/x-js
> 
>  in my httpd conf file, I see only static resources which are served by
> apache getting gzipped.
> 
> Dynamic response (text/html)  which are served by tomcat through AJP
> connector are not zipped.
> 
> I tried googling and found that there are more people who have this problem
> but with no answers.
> 
> 
> Can any one help me on this?

Not before you are telling us your version of httpd and mod_jk ;)

It works for me with httpd 2.2.8 and mod_jk 1.2.26. I also added

     AddOutputFilter DEFLATE html txt xml css js jsp do

in addition to the AddOutputFilterByType.

If you use Firefox as a browser and install Firebug. What does it show 
you as Content-Type and Content-Encoding of the response? What does it 
show as Accept-Encoding for the request?

> With Regards,
> 
> teja

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org