471,306 Members | 838 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Apache 2.0.47, Tomcat 4.1.27, mod_jk2 2.0.2 AND mod_deflate

I have setup Apache 2.0.47 on Windows XP to serve jsp/servlet requests
using Tomcat 4.1.27. I did this using the mod_jk2 module and was able
to successfully connect to http://host/examples and get the tomcat
example pages. I'm using JDK 1.3.1-03.

I then configured mod_deflate and was able to verify it works by
telnet'ing to port 80 and giving it a request using "Accept-Encoding:
gzip, deflate". I did this on both the main index.html file and the
main manual document.

However, any request to /examples/* (served by jk2) does NOT get
compressed. I even placed the main index.html file in
TOMCAT_HOME\webapps\examples\ and that too will be send un-compressed!

I've tried a variety of options within the <Directory> section, and
switching the order of the LoadModule statements.

Is what I'm trying to do possible? Should I consider using mod_jk or
mod_webapp? Switch to Apache 1.3.x?

Below are the configuration files/sections which should be relevant:

httpd.conf:
LoadModule jk2_module modules/mod_jk2-2.0.43.so
LoadModule deflate_module modules/mod_deflate.so

<Directory />
SetOutputFilter DEFLATE

Options FollowSymLinks
AllowOverride None
</Directory>

workers2.properties:
[common]
debug=10
[config]
debug=10
debugEnv=10
[shm]
file=c:/apache/apache2/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
[uri:/examples/*]
info=Map the whole webapp

Thanks,
Josh
Jul 17 '05 #1
0 2913

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by J Peaks | last post: by
1 post views Thread by ptaz | last post: by
reply views Thread by Oleg Konovalov | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.