• 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.
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!