Home  >  Article  >  Operation and Maintenance  >  What is the connection between apache and tomcat

What is the connection between apache and tomcat

王林
王林forward
2020-06-10 17:41:503494browse

What is the connection between apache and tomcat

The connection between apache and tomcat:

1. Apache is an ordinary server. It only supports HTML, which is ordinary web pages. It can support PHP through plug-ins and can also be connected to Tomcat. (Apache has a one-way connection to Tomcat, which means that Tomcat resources can be accessed through Apache, but not vice versa).

2. Apache only supports static web pages, but dynamic web pages like Jsp require Tomcat to process.

3. Integrated use of Apache and Tomcat

If the client requests a static page, only the Apache server needs to respond to the request; if the client requests a dynamic page, the Tomcat server responds to the request. Parse the parsed JSP and other web page codes and send them back to the Apache server, and then return them to the browser via Apache.

This is because jsp interprets code on the server side, Tomcat only does dynamic code parsing, and Apache returns the parsed static code. This integration of Apache Tomcat can reduce Tomcat's service overhead.

4. Apache and Tomcat are independent and can be integrated on the same server.

Recommended tutorial: apache from entry to proficiency

The above is the detailed content of What is the connection between apache and tomcat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete