Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where to put static content?

Status
Not open for further replies.

evgeniosc

IS-IT--Management
Oct 5, 2002
75
CY
There are many references that we should connect tomcat with apache for various rearsons.

One reason is the performance, because apache serves static content (images, css, javascript included files etc) faster than tomcat.

To accomplish this do we have to put the static content in the apache directory structure or just connect apache with tomcat?

If we have to put the static content in apache's directories, means that the content of the web-application will be seperated.

It also complicates the configuration for connecting apache with tomcat because in some way you have to indicate to apache that requests to static content must not be forwarded to tomcat.

My opinion is that even if we leave the static content in tomcat's directories there is a performance gain since the serving of static content to the client is done by apache.

To summarize my question is:

Do we have to put the static content in apache's directory structure or just connect apache with tomcat to have performance gains from apache-tomcat connection?
 
You can put the static content wherever you like - as long as you tell Apache where to pick up the content from (ie change the defaults).

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top