• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mod_deflate doesn't work

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Smith Li
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic