Here's what I have in my httpd.conf file and it works fine with Tomcat.

<IfModule mod_deflate.c>
    #Compress everything except images
    <Location />
    # Insert filter
    SetOutputFilter DEFLATE
     
     # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    
    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    
    # Don't compress images
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|wav|doc|pdf)$
no-gzip dont-vary
    
    SetEnvIfNoCase Request_URI \.* dont-vary 
    
    </Location> 
    
    DeflateFilterNote Input instream
    DeflateFilterNote Output outstream
    DeflateFilterNote Ratio ratio
</IfModule>

Hope that helps,
Subir

-----Original Message-----
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 8:56 AM
To: Tomcat Users List
Subject: mod_deflate with mod_jk2


On my site, I have Apache 2.0 fronting Tomcat 4.1 using the mod_jk2
connector.

I'm trying to enable mod_deflate to automatically compress output from
Tomcat, using this line in my apache config:

AddOutputFilterByType DEFLATE text/html

But the DEFLATE filter is ignoring output from Tomcat, while static html
content (served by apache) is correctly being deflated.

Am I missing something, or is it impossible for mod_jk2 and mod_deflate
to play nice together? Maybe I need to add a compression filter at the
Tomcat level instead? (This seems silly).

Thank you,

Bryan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to