What the relation between Apache & Tomcat
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhu_zhengyin
Posted On:   Saturday, March 30, 2002 06:09 AM

Hi, i just want to ask a question about
the relation between Apache & Tomcat.
That is, i know when i want deploy a
web application, i use Tomcat. But do
i need to use Apache as the web server
to host my static HTML pages? How should
i set the Apache & Tomcat to process
what they should process?

Re: What the relation between Apache & Tomcat

Posted By:   Bernard_Ong  
Posted On:   Monday, April 1, 2002 01:56 PM

it depends on the web application you will be deploying.



there's no hard and fast rule, but...



if you are writing applications that are all based on java jsp and servlets, then using tomcat4 would be all you need.



however, if you are also serving up html files, and need more of what apache offers with its expandable modules, at the same time that you need to support java servlets, you need to configure apache+tomcat4 together for better deployment.



while tomcat4 can also function as a web server, and unless you only have a (few) handful of html files that are being served up, you really want apache for production deployment as it offers more flexibility to grow with your needs.



ob1

Re: What the relation between Apache & Tomcat

Posted By:   Anonymous  
Posted On:   Saturday, March 30, 2002 09:29 AM

Hi, Tomcat can also host static HTML pages, but Apache is more efficient in that.

I guess, if your webapp has high load it is better if Apache hosts all static pages.

The Apache & Tomcat setup is explained in Tomcats documents.

About | Sitemap | Contact