You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tim Kientzle <ki...@acm.org> on 2000/09/22 00:27:28 UTC

Debugging Proxy setup

I'm using Apache as a front-end which proxies requests
to Tomcat (using ProxyPass).  I'm having some odd problems
getting If-Modified-Since to work (in a nutshell,
If-Modified-Since doesn't seem to ever get to Tomcat;
or maybe the Last-Modified response header is getting messed
up somewhere?).  I could probably figure this out if I could
eavesdrop on the complete request/response path.

Question: Is there a way to prompt Apache to dump
the headers for each of the following:
 1) The client request to Apache
 2) Apache's proxy request to Tomcat
 3) Tomcat's response to Apache
 4) Apache's response to the client.

Of these, I can look at 2 and 4, but I haven't figured
out a good way to snoop on the others.

FWIW, I looked at mod_jserv and mod_jk, but couldn't
figure out how to redirect certain requests to Tomcat
with URL rewriting (that is, I have to preserve existing
URLs, but have them processed by a servlet; that requires
appending /context/servlet/ServletName to each request).
mod_proxy seems to get around this limitation quite handily.

Any help appreciated,

		Tim Kientzle