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

What is the connection between apache and tomcat

王林
Release: 2020-06-10 17:41:50
forward
3618 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template