[ajug-members] Tomcat serving static content

raheemdaya at yahoo.com raheemdaya at yahoo.com
Fri Sep 14 13:11:06 EDT 2007


Hey Igor,
Your best bet would be to front the site with Apache, you really don't want to bog down tomcat with serving static content as that isn't what it is best at.

--Raheem

----- Original Message ----
From: Igor Tovstopyat-Nelip <igor.tn at gmail.com>
To: General AJUG membership forum (100-200 messages/month) <ajug-members at ajug.org>
Sent: Friday, September 14, 2007 9:48:01 AM
Subject: [ajug-members] Tomcat serving static content

Hi all,

I am working on the web app which has to show images that have just been uploaded. In fact, there are other media types (like audio) as well that are uploaded and should be reachable through the web site immediately, but let's focus on images.


Currently, we have only Tomcat as a server for the dev environment, no Apache web server in front of it. The strange problem I'm seeing is that the newly uploaded images are not immediately available until the whole application is redeployed.


Now questions:

1. Is this a normal Tomcat behavior? Are there any settings that can push the newly uploaded images to show on the web site without redeployment?
2. Or, this can only be fixed by putting the Apache web server in front of Tomcat to serve static content?

3. What about Apache APR (Apache Portable Runtime) bundled with Tomcat? Can this be a good alternative to running the Apache Http + Tomcat combo from the perspective of serving static content?

Thank you,
Igor






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20070914/db3ae5bf/attachment.html 


More information about the ajug-members mailing list