Apache is the most popular Web server and one of the most successful open-source projects of all time. Since April 1996, Apache has served more Web sites than any other Web server. Many of the world’s largest Web sites, including YouTube, Facebook, Wikipedia and Craigslist, use Apache to serve billions of page views per month. Over the years, Apache has proven itself to be a very stable, secure and configurable Web server. Although Apache is an excellent Web server, what if there were an alternative with the same functionality, a simpler configuration and better performance? That Web server exists, and it’s called Nginx.
Nginx, pronounced “Engine X”, is a high-performance Web server and reverse proxy. It was created by Igor Sysoev for www.rambler.ru, Russia’s second-largest Web site. Rambler has used Nginx since summer 2004, and it’s currently serving about 500 million requests per day. Like Apache, Nginx is used by some of the largest Web sites in the US, including WordPress (#26), YouPorn (#27), Hulu and MochiMedia. As of May 2008, Nginx is the fourth-most-popular Web server, and it is currently serving more than two million Web sites. As it is only trailing behind Apache, IIS and GFE, it is effectively the second-most-popular Web server available for Linux.
Why Use Nginx?
Like Apache, Nginx has all the features you would expect from a leading Web server:
- Static file serving.
- SSL/TLS support.
- Virtual hosts.
- Reverse proxying.
- Load balancing.
- Compression.
- Access controls.
- URL rewriting.
- Custom logging.
- Server-side includes.
- WebDAV.
- FLV streaming.
- FastCGI.
Why It is Useful With Magento :
We used AB (Apache benchmark) utility. We have checked how much pages each web-server generated during one minute, with 15 concurrent connections to the server. Servers configuration:
Old Server: – Litespeed (version 4.0.12) – Dual CPU Quadcore Intel Xeon; – 6GB RAM, – 4xHDD 15000 rpm RAID 1+0
New server: – NginX (version 0.7.65) – Single CPU DualCore Intel Xeon; – 2 GB RAM, – 1xHDD 7200 rpm.
Results:
Litespeed Benchmarking ***.com: Finished 672 requests |
NginX Benchmarking ***.com: Finished 2761 requests |
The results are really impressing. NginX performance is overhelming, even if the Litespeed server has much better hardware than NginX one.
Thats why MagentoCommrece and Demo site moves to Nginx
Detailed Results
Results for LiteSpeed:
|
Results for NginX (Engine-X):
|
Related Links :
1 – http://webkul.com/magento-tutorial
2- http://webkul.com/magento-tutorial/magento
3 – http://webkul.com/magento-tutorial/nginx-in-magento
4 – http://webkul.com/magento-tutorial/magento-in-localhost
5 – http://webkul.com/magento-tutorial/how-to-import-csv-into-magento
6 – http://webkul.com/magento-tutorial/method-varien-object-tostring-cannot-take-arguments-in-magento
Be the first to comment.