tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Dabbs" <>
Subject How best to get some data from a Servlet to Apache access log. . .
Date Sat, 02 Oct 2010 18:40:45 GMT

I'm running Tomcat fronted by Apache httpd via mod_proxy_ajp.
There's a small bit of data from my Servlet response I'd like to 
get into the Apache access_log.

I know I could set a response header, say X-MyData, and log
that using a CustomLog directive. But I don't want this header
cruft going out with the response from Apache. Would I use mod_headers
to remove this header (and yet still log to access_log)?

Another possibility is to use a "note," which I can also log
using CustomLog. It's not clear though, how I would set this note
using the Response obj available to my servlet code and have it 
propagate back through AJP.

Looking for the best way to skin this cat.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message