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?
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?