[ajug-members] Tomcat serving static content
Burr Sutter
burrsutter at gmail.com
Fri Sep 14 13:32:05 EDT 2007
I'd be curious about a couple of things:
1) if you use an exploded/expanded WAR would your static image file
changes show up automatically?
2) If you are interested in the APR+Tomcat capability then you might
look at: http://labs.jboss.org/jbossweb/ Mladen Turk is one of the lead
committers behind Tomcat and was the man behind this idea, he gets
APR+Tomcat build stable and on the JBoss labs page (because we pay his
salary).
_____
From: ajug-members-bounces at ajug.org [mailto:ajug-members-bounces at ajug.org]
On Behalf Of raheemdaya at yahoo.com
Sent: Friday, September 14, 2007 1:11 PM
To: General AJUG membership forum (100-200 messages/month)
Subject: Re: [ajug-members] Tomcat serving static content
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/9c871c9e/attachment.html
More information about the ajug-members
mailing list