Problem solve Get help with specific problems with your technologies, process and projects.

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 last published in February 2003

Dig Deeper on Microservices and DevOps



Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.