permaculture playing cards*
The moose likes Tomcat and the fly likes mod_deflate doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "mod_deflate doesn Watch "mod_deflate doesn New topic
Author

mod_deflate doesn't work

Rudy Rusli
Ranch Hand

Joined: Jun 01, 2006
Posts: 114
I put this line below in httpd.conf:

It doesn't work. It supposed to gzip the page that I'm requesting through Apache, right?
Is this the only thing I have to do to use the DEFLATE filtering capability?

Thanks in advance for the help.
Rudy Rusli
Ranch Hand

Joined: Jun 01, 2006
Posts: 114
This below is more detail explanation for my question. Sorry I wasn't giving too much detail previously.
--------------------------------
I'm trying to compress content before it is delivered to the client.
So I follow the instructions on this link: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html#recommended

I add these two lines on my httpd.conf:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
SetOutputFilter DEFLATE

Then I restart Apache.

Then I try to access a JSP page that generates XML page using web browsers. But it seems that the DEFLATE filter doesn't do anything. I'm not sure what did I do wrong? Am I missing some important steps here?

Thanks in advance for the help.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12755
    
    5
Im not real clear on your configuration, but Tomcat can handle compression of response streams through servlet filters. A google search for "servlet filter gzip" will turn up lots of hits.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: mod_deflate doesn't work
 
Similar Threads
Custom zip file- Object storage
Need help w/ZIP archives: why no compression?
Getting pixel data from a png Image
addHeader and getHeaders
Control of content encoding