Home >Operation and Maintenance >Nginx >The difference between nginx and tomcat

The difference between nginx and tomcat

王林
王林Original
2019-10-23 10:19:2417984browse

The difference between nginx and tomcat

The difference between nginx and tomcat

nginx is commonly used as a static content service and proxy server, directly forwarding external requests to the subsequent application server (tomcat , Django, etc.), tomcat is more used as an application container, allowing java, web, and apps to soak in it.

Strictly speaking, nginx should be called HTTP Server, while tomcat is an Application Server and a container for Servlet/JSO applications.

The client accesses resources stored on the server (HTML files, image files, etc.) through HTTP Server. HTTP Server only faithfully transmits the files on the server to the client through the HTTP protocol.

The application server often runs behind the HTTP Server, executes the application, converts the dynamic content into static content, and distributes it to the client through the HTTP Server.

Note: nginx only distributes the request and does not process it!

Recommended tutorial: Nginx tutorial

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

Statement:
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