Home>Article>Operation and Maintenance> 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!