为什么即使Nginx在性能上已证明了其实力,Apache仍然如此受欢迎?
据我了解,目前的普遍共识是,使用 nginx+php-fpm 的性能比启用了 mpm_event 进程管理的 apache 更快?但在实际使用中,我观察到许多生产环境仍然大量部署 apache。即使是基于 cpanel 的网络托管(共享或专用实例),也更常见使用 apache 而不是 nginx。
这是否是由于一些旧习惯和对 apache 特定功能(如 .htaccess 支持)的依赖?还是说 apache 在与 nginx 的竞争中实际上已经赶上,性能差异如今已经微不足道?
查看原文
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?<p>But when it comes to real world usage, many production instances I observe these days still deploy apache a lot. Even cpanel based web hosting (shared or dedicated instances) are more often apache based than nginx.<p>Is it due to some old habits and dependence on apache specific features like .htaccess support? Or is it the case that apache has actually caught up in the race with ngnix and the performance difference is quite negligible these days?