Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

At enterprise level, is Apache Tomcat used standalone or with Apache server?

Tags:

apache

tomcat

Which one of these two is most commonly used scenario? I want to use the same scenario in my learning process. thanks.

like image 244
understack Avatar asked Jul 11 '10 14:07

understack


People also ask

Is Tomcat a standalone server?

In a traditional setup, an enterprise would use a single, standalone Tomcat server and deploy all Java web applications to that one instance.

Do I need both Apache and Tomcat?

Yes, you need both apache and tomcat installed, but you can configure apache to redirect (transparently for the user) all JSP requests to tomcat using AJP protocol.

What is the difference between Apache server and Apache Tomcat server?

the Apache HTTP Server, but the fundamental difference is that Tomcat provides dynamic content by employing Java-based logic, while the Apache web server's primary purpose is to simply serve up static content such as HTML, images, audio and text.

Does Tomcat include Apache web server?

Tomcat is another Apache project. This project implements a Java servlet engine to serve JSP pages and servlets.


1 Answers

Don't know about the rest of the industry, but where I work we have Apache HTTPD front-ending for Tomcat.

Any static content is directly provided by HTTPD for performance. Pain in the neck to separate every app out, but there is a noticeable payoff.

Also, HTTPD has some nice code for cookie handling, URL rewriting, clustering and so on.

Only if we determine that there's dynamic, database-bound data to show do we forward to Tomcat, which does an admirable job there.

Has been working well for us for almost a decade. Others too, I would wager.

like image 179
Carl Smotricz Avatar answered Sep 24 '22 13:09

Carl Smotricz