Apache vs. Nginx

Source: Internet
Author: User

Lite version

Apache: Famous earlier, about 09 years is the most popular period, powerful, can be configured according to the needs of the process, based on thread or event-based, but consumes more memory, high demand for hardware, memory is the most important factor affecting the performance of the server, on the VPS can not be very good support.

Nginx: Belongs to the rising star, the application is more and more widespread in recent years, the main feature is the low memory consumption, can run well on the VPS, this is because Nginx is an event-based asynchronous server, so after receiving a new request, there is no need to create too many threads.

Nginx concurrency number high, processing requests asynchronous non-blocking, one process multiple connections, while Apache is a synchronous multi-process, a process one connection, belong to the blocking type.

Nginx occupies a small amount of resources and memory, highly modular, simple configuration, Apache configuration is relatively complex.

Nginx is suitable for handling static files and reverse proxies.

Apache's rewrite feature is more powerful, support for dynamic pages is better and super stable.

Apache support for PHP is relatively simple, nginx needs to cooperate with other backend use, Apache components are also richer.

The general front end is Nginx, the back end is Apache.

Apache vs. Nginx

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.