aspose file tools*
The moose likes Tomcat and the fly likes Diffference between Apache & Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Diffference between Apache & Tomcat" Watch "Diffference between Apache & Tomcat" New topic
Author

Diffference between Apache & Tomcat

Ram Bu
Greenhorn

Joined: Jul 15, 2005
Posts: 13
I read online the following differences,

As far as I know, Apache is used for static web pages,
and Tomcat is used for servlets/JSP. You don't really
need Apache since Tomcat also handles html pages, but
Apache does a better job of it.

<li/>For most of the web sites apache is well suited. In addition, with apache
you can build dynamic web sites using CGI scripts or PHP.

<li>Tomcat is dedicated to provide a servlet API and JSP to build web
applications. You can use it alone or bind it with apache.

But, is there any place where I can find more detailed differences between Apache & Tomcat.

Thank you.
R
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Apache == a community of developers that produce various open source tools and APIs. Find out about them here.

Apache HTTP Server == A web server. Read more about it here.

Apache Tomcat == It is, as you have already found out, a Servlet container. Read more about it here.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61657
    
  67

Originally posted by Ram Bu:
Tomcat also handles html pages, but
Apache does a better job of it.


This is a myth that has not been true for a long time now. Tomcat handles static content just fine.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stu Thompson
Hooplehead
Ranch Hand

Joined: Jun 14, 2006
Posts: 136
Originally posted by Bear Bibeault:


This is a myth that has not been true for a long time now. Tomcat handles static content just fine.


In terms of response performance, yes. (My google for metrics only turned up TC4 vs. httpd 1.3 comparisions.) But features I need for static content (such as URL rewriting, header tweaking, etc.) are just not there in TC. I would also be sceptical about scaling but without any numbers to back it up...well, who knows?


"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Diffference between Apache & Tomcat