Seems to be a common problem. The webapp Deploy statement (using mod webapp) will run everything in the 'deployed' directory tree, including images through tomcat. It's not a good idea to put static resources there, IMHO. If you have to put them there, but want apache to serve them, then us the Alias directive in Apache so that apache grabs them from a different URI, like this: alias /images/ /$tomcat/webapps/webapp/images/ This way the uri doesn't contain the path that is in the webapp Deploy statement, so it wont pass the request to tomcat. Ken
Jakarta Tomcat Newsgroup (@Basebeans.com) wrote: >Subject: Questions about Tomcat and Apache Integration? >From: "Jack Gao" <[EMAIL PROTECTED]> > === >Hi, List > >I have some questions about Tomcat and Apache integration. > >As I remember that the reason of not use Tomcat as a web server but only >JSP/Servlet engine is because of performance. Tomcat is not as good as >Apache to handle large number of requests at same time, and handle static >resources. So, I assume that by integrate Tomcat and Apache together, when a >request is for a static resource, like a html file or an image file, the >request will not go to Tomcat, but been processed by Apache directly. > >But when I go through the log files of Tomcat 4.0.3, I found that request of >image files also go to Tomcat, it also been logged into >localhost_access_log......txt file. > >So I got confused. Does this mean, this image files also processed by >Tomcat? or tomcat just log it as a access event, but didn't process it? If >Tomcat need to handle this kind of static resources, why we still need >Apache? If Apache just pass through the request to Tomcat, and forward >response to client, that will not help the performance I think. > >Anybody has some info on this? > >Thanks and regards, > >Jack > > > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
