1, Nginx advantages compared to Apache:
Nginx lightweight, the same Web services, more than Apache occupy less memory resources;
Anti-concurrency, Nginx processing request is asynchronous non-blocking type, Apache processing request is blocking type, so in dealing with high concurrency is nginx can keep low resource consumption and high performance;
Highly modular design, relatively simple to write modules
High-performance modules produced quickly;
The advantages of Apache relative Nginx:
Rewrite, more powerful than Nginx's Rewirte
The module is too much, the basic thought can be found
Apache is relatively mature, with fewer defects and nginx;
When we consider the use of Web servers, if the concurrency requirements are high, to ensure performance, choose Nginx as a server, if the performance requirements are not high, to ensure stability at this time we can consider using Apache as a Web server
Epoll Network IO Model is the fundamental reason for high nginx processing performance (asynchronous non-blocking)
Because nginx processing static has advantages, Apache processing dynamic has advantages some large sites can be recorded using Nginx as front, Apache as a back-end processor.
Comparison of the advantages and disadvantages between Apache and Nginx