Q

Tomcat versus Apache

What is the difference between the Tomcat server and Apache server? Are there any differences?

Apache is an HTTP/1.1 compliant Web server and Tomcat is a servlet container and JSP engine. They are often used together to optimize static and dynamic content handling. When running them together, Tomcat is typically configured as an add-on to the Apache Web server to handle JSPs and servlets.

When using Apache and Tomcat together, the scenario usually goes like this:

  1. Apache listens for HTTP requests.
  2. When a request arrives, Apache checks whether it is a servlet request, a request for a JavaServer Page or a request for static content.
  3. If the request targets a servlet or JSP page, Apache forwards the request to Tomcat.
  4. If the request is for static content (non-servlet or JSP), Apache handles the request.
More information about the details of how Tomcat and Apache can be used together can be found at: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html


This was first published in February 2003
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close