Differences between Apache, Tomcat, and Nginx: tomcatnginx

Source: Internet
Author: User
Tags url forwarding

Differences between Apache, Tomcat, and Nginx: tomcatnginx

I. Definition:
1. Apache HTTP Server is a modular server that can run on almost all widely used computer platforms. It belongs to the application server. Apache supports many modules and stable performance. Apache is a static parsing method and is suitable for static HTML and images. However, it supports dynamic pages by extending scripts and modules. (Apche supports PHPcgiperl, but to use Java, you need to support Tomcat in the Apache background and forward Java requests to Tomcat for processing .) Disadvantage: the configuration is relatively complex and does not support dynamic pages.
2. Tomcat: Tomcat is an application (Java) server. It is only a Servlet (JSP is also translated as Servlet) container. It can be considered as an extension of Apache, but can run independently of Apache.
3. nginx is a lightweight HTTP server compiled by Russians. Nginx is pronounced as "engine X" and is a high-performance HTTP and reverse proxy server, it is also an IMAP/POP3/SMTP proxy server.

Ii. Comparison
1. Comparison between Apache and Tomcat
Similarities: both are developed by Apache.

Both have HTTP service functions

Both are free.

 

Differences: Apache uses HTTP services and related configurations (such as virtual hosts and URL forwarding ), tomcat is a JSP server developed by Apache in compliance with Java ee jsp and Servlet standards.

Apache is a Web server environment program that can be used as a Web server. However, Apache does not support dynamic webpages such as ASP, PHP, CGI, and JSP. If you want to run JSP in Apache, you need an interpreter to execute the JSP webpage. This JSP interpreter is Tomcat.

Apache: focuses on HTTPServer and Tomcat: focuses on Servlet engines. If it runs in Standalone mode, it is functionally equivalent to Apache and supports JSP, but it is not ideal for static web pages;

Apache is a Web server, and Tomcat is an application (Java) server. It is just a Servlet (JSP is also translated into Servlet) container. It can be considered as an extension of Apache, but it can run independently of Apache.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.