Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache and Tomcat

 
Anju sethi
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone explain me the difference between Apache and tomcat
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy -- Apache is a web server, whose primary responsibility is to respond to HTTP requests (like GET (some file))

But to run servlets/JSPs, you also need a web "container", and that's what Tomcat does. Tomcat supports servlets and JSPs, and is also a very weak web server, but for the real world, you would normally configure Tomcat into the Apache web server as a "plug in". Then the powerful Apache web server accepts the HTTP requests, while using Tomcat to deal with the servlets/JSPs.

So...

Apache alone -- powerful HTTP web server

Tomcat alone -- web container, with a very limited HTTP web server

Apache with Tomcat -- a powerful web server that supports servlets and JSPs

Cheers,
Kathy
 
shih mao su
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thinks. the answer is great.
let me understand with apache and tomcat different.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic