Jump to content

Nginx: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
fix wrong IPA
Performance vs Apache: - Recreated this with a very light summary of a neutral third party's results.
Line 72: Line 72:


The paid Nginx Plus product includes additional features such as advanced load balancing and access to an expanded suite of metrics for performance monitoring.<ref name="Plus metrics" /> <ref name="Plus load balancing" />
The paid Nginx Plus product includes additional features such as advanced load balancing and access to an expanded suite of metrics for performance monitoring.<ref name="Plus metrics" /> <ref name="Plus load balancing" />

== Performance vs Apache ==
Nginx was written with an explicit goal of outperforming the [[Apache HTTP Server|Apache]] web server. <ref>{{Cite news|url=https://www.nginx.com/blog/nginx-vs-apache-our-view/|title=NGINX vs. Apache: Our View of a Decade-Old Question|date=2015-10-09|newspaper=NGINX|language=en-US|access-date=2016-12-28}}</ref> Out of the box, serving static files, Nginx uses dramatically less memory than Apache, and can handle roughly 4 times more requests per second.<ref>{{Cite web|url=https://help.dreamhost.com/hc/en-us/articles/215945987-Web-server-performance-comparison|title=Web server performance comparison|website=DreamHost|access-date=2016-12-28}}</ref> This performance boost comes at a cost of decreased flexibility, such as the ability to load modules dynamically (Nginx requires [[Compiling|recompiling]] the application from source, where Apache allows modules to be [[Dynamic loading|loaded at runtime]]), or the ability to override systemwide access settings on a per-file basis (Apache accomplishes this with an [[.htaccess]] file, while Nginx has no such feature built in.)<ref>{{Cite news|url=http://www.hostingadvice.com/how-to/nginx-vs-apache/#flexibility|title=NGINX vs. Apache (Pro/Con Review, Uses, & Hosting for Each) - HostingAdvice.com|date=2016-04-05|newspaper=HostingAdvice.com|language=en-US|access-date=2016-12-28}}</ref>


== History ==
== History ==

Revision as of 07:20, 28 December 2016

Nginx
Original author(s)Igor Sysoev
Developer(s)Nginx, Inc.
Initial release4 October 2004; 20 years ago (2004-10-04)[1]
Repository
Written inC[2]
Operating systemBSD variants, HP-UX, IBM AIX, Linux, OS X, Solaris, Windows,[3] and other *nix flavors,[4]
TypeWeb server, reverse/mail proxy server
License2-clause BSD[5]
Websitenginx.org Edit this at Wikidata

Nginx (pronounced /ɛnʒən ɛks/ en-jin-eks), stylized as (NGINX or nginx), is a web server, which can also be used as a reverse proxy, load balancer and HTTP cache.

Created by Igor Sysoev in 2002, it runs on Unix, Linux, BSD variants, OS X, Solaris, AIX, HP-UX, and Windows.[4]

Nginx is free and open source software, released under the terms of a BSD-like license. A company of the same name was founded in 2011 to provide support.[6]

Features

Nginx can be deployed to serve dynamic HTTP content on the network using FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion Passenger modules, and it can serve as a software load balancer.[7]

Nginx uses an asynchronous event-driven approach to handling requests. Nginx's modular event-driven architecture[8] can provide more predictable performance under high loads.[9]

According to Netcraft's November 2016 Web Server Survey,[10] Nginx was found to be the second most widely used web server across all "active" sites (18.22% of surveyed sites) and for the top million busiest sites (27.83% of surveyed sites). According to W3Techs, it was used by 37.7% of the top 1 million websites, 49.7% of the top 100,000 websites, and by 57.0% of the top 10,000 websites.[11] According to BuiltWith, it is used on 38.2% of the top 10,000 websites, and its growth within the top 10k, 100k and 1 million segments increased.[12] Wikipedia uses Nginx as its SSL termination proxy.[13] As of OpenBSD release 5.2 (1 November 2012), Nginx became part of the OpenBSD base system, providing an alternative to the system's fork of Apache 1.3, which it was intended to replace,[14] but it was later replaced by OpenBSD's own httpd(8).[15]

HTTP proxy and Web server features

Mail proxy features

Other features include upgrading executable and configuration without client connections loss,[37] and a module-based architecture with both core[38] and third-party module support.[39]

The paid Nginx Plus product includes additional features such as advanced load balancing and access to an expanded suite of metrics for performance monitoring.[40] [41]

Performance vs Apache

Nginx was written with an explicit goal of outperforming the Apache web server. [42] Out of the box, serving static files, Nginx uses dramatically less memory than Apache, and can handle roughly 4 times more requests per second.[43] This performance boost comes at a cost of decreased flexibility, such as the ability to load modules dynamically (Nginx requires recompiling the application from source, where Apache allows modules to be loaded at runtime), or the ability to override systemwide access settings on a per-file basis (Apache accomplishes this with an .htaccess file, while Nginx has no such feature built in.)[44]

History

Nginx, Inc.
Company typePrivate
IndustryTechnology
Founded2011
Headquarters
Russia
Key people
Gus Robertson (CEO), Igor Sysoev (CTO)
ProductsWeb servers
Websitenginx.com

Igor Sysoev began development of Nginx in 2002.[45] Originally, Nginx was developed to solve the C10K Problem, and to fill the needs of websites including Rambler, for which it was serving 500 million requests per day by September 2008.[46][47]

A company of the same name was founded in July 2011 by Sysoev to provide commercial products and support for the software.[48]

The company's principal place of business is San Francisco, California, while legally incorporated in British Virgin Islands.[6]

In October 2011, Nginx raised $3 million from BV Capital, Runa Capital and MSD Capital, Michael Dell‘s venture fund.[49]

The company announced commercial support options for companies using Nginx in production. Nginx offered commercial support in February 2012,[50][51] and paid Nginx Plus subscription in August 2013.[52]

Support packages focus on installation, configuration, performance improvement, etc.[53] Support includes proactive notifications about major changes, security patches, updates and patches.

WordPress developer Automattic and content delivery network provider MaxCDN became funding partners for an update to Google's SPDY version 3.1, slated for early 2014.[54]

Nginx also offers consulting services to assist customers in custom configuration or adding additional features.[55]

In October 2013, Nginx raised a $10 million series B investment round led by New Enterprise Associates.[56] That round included previous investors, as well as Aaron Levie, CEO and founder of Box.com.[57][58] In December 2014, Nginx raised a $20 million series B1 round led by New Enterprise Associates, with participation from e.ventures (formerly BV Capital), Runa Capital, Index Ventures and Nginx’s own CEO Gus Robertson.[59][60]

Version Original release date Latest version Release date Status
Old version, no longer maintained: 0.5 2006-12-04 0.5.38 2009-09-14[61] Legacy
Old version, no longer maintained: 0.6 2007-06-14 0.6.39 2009-09-14[62] Legacy
Old version, no longer maintained: 0.7 2008-05-19 0.7.69 2011-07-19[63] Legacy
Old version, no longer maintained: 0.8 2009-06-02 0.8.55 2011-07-19[64] Legacy
Old version, no longer maintained: 1.0 2011-04-12 1.0.15 2012-04-12[65] Legacy
Old version, no longer maintained: 1.2 2012-04-23 1.2.9 2013-05-13[66] Legacy
Old version, no longer maintained: 1.4 2013-04-24 1.4.7 2014-03-18[67] Legacy
Old version, no longer maintained: 1.6 2014-04-24 1.6.3 2015-04-07[68] Legacy
Old version, no longer maintained: 1.8 2015-04-21 1.8.1 2016-01-26[69] Legacy
Old version, no longer maintained: 1.9 2015-04-28 1.9.15 2016-04-19[70] Legacy
Current stable version: 1.10 2016-04-26 1.10.1 2016-05-31[71] Stable
Current stable version: 1.11 2016-05-24 1.11.6 2016-11-15[72] Mainline
Legend:
Old version, not maintained
Old version, still maintained
Latest version
Latest preview version
Future release

See also

References

  1. ^ "CHANGES". Retrieved 16 September 2014.
  2. ^ "The NGINX Open Source Project on Ohloh". ohloh.net. Retrieved 7 March 2013.
  3. ^ "nginx for Windows". Retrieved 28 May 2014.
  4. ^ a b "Tested OS and platforms". Retrieved 15 October 2011.
  5. ^ "Licensing". Retrieved 18 January 2013.
  6. ^ a b "Notice of Exempt Offering of Securities". Form D. US Securities and Exchange Commission 17 October 2013. Retrieved 15 September 2016.
  7. ^ Use nginx for Proxy Services and Software Load Balancing, 11 May 2010, by Sam Kleinman, Linode Library
  8. ^ "The Architecture of Open Source Applications (Volume 2): nginx". aosabook.org. Retrieved 10 June 2015.
  9. ^ Basic nginx Configuration by Sam Kleinman; 21 August 2010
  10. ^ "November 2016 Web Server Survey". 22 November 2016. Retrieved 19 December 2016.
  11. ^ "Usage of web servers broken down by ranking". 19 December 2016. Retrieved 19 December 2016.
  12. ^ "Builtwith: nginx Usage Statistics". 19 December 2016. Retrieved 19 December 2016.
  13. ^ "Wikitech: HTTPS". Wikitech.wikimedia.org. 3 October 2011. Retrieved 3 December 2011.
  14. ^ OpenBSD Upgrade Guide: 5.1 to 5.2, 2012/11/06 15:00:27 sthen
  15. ^ "Heads Up: Nginx Removed From Base".
  16. ^ "Module ngx_http_upstream_module". nginx.org. Retrieved 14 August 2012.
  17. ^ "Module ngx_http_v2_module". nginx.org. 30 October 2015. Retrieved 2 November 2015.
  18. ^ "Proxy: support for connection upgrade (101 Switching Protocols)". trac.nginx.org. 19 February 2013. Retrieved 21 February 2013.
  19. ^ "Module ngx_http_flv_module". nginx.org. Retrieved 9 November 2014.
  20. ^ "Module ngx_http_mp4_module". nginx.org. Retrieved 24 April 2012.
  21. ^ "Module ngx_http_gunzip_module". nginx.org. Retrieved 13 September 2012.
  22. ^ "Module ngx_http_rewrite_module — rewrite". nginx.org. Retrieved 24 December 2014.
  23. ^ Murenin, Constantine A. (18 February 2013). "A dynamic web-site written wholly in nginx.conf? Introducing mdoc.su!". nginx@nginx.org (Mailing list). Retrieved 24 December 2014. {{cite mailing list}}: Unknown parameter |mailinglist= ignored (|mailing-list= suggested) (help)
  24. ^ Murenin, Constantine A. (24 February 2013). "mdoc.su — Short manual page URLs for FreeBSD, OpenBSD, NetBSD and DragonFly BSD". Retrieved 24 December 2014.
  25. ^ "Module ngx_http_log_module — access_log". nginx.org. Retrieved 25 December 2012.
  26. ^ "Module ngx_http_limit_conn_module". nginx.org. Retrieved 8 June 2015.
  27. ^ "Module ngx_http_limit_req_module". nginx.org. Retrieved 8 June 2015.
  28. ^ "Module ngx_http_core_module — limit_rate". nginx.org. Retrieved 24 June 2012.
  29. ^ "Module ngx_http_ssi_module". nginx.org. Retrieved 10 June 2015.
  30. ^ "Module ngx_http_geoip_module". nginx.org. Retrieved 10 June 2015.
  31. ^ "Module ngx_http_userid_module". nginx.org. Retrieved 20 November 2012.
  32. ^ "Module ngx_http_dav_module". nginx.org. Retrieved 10 June 2015.
  33. ^ "Module ngx_http_xslt_module". nginx.org. Retrieved 6 May 2012.
  34. ^ "Module ngx_http_perl_module". nginx.org. Retrieved 16 June 2012.
  35. ^ "Naxsi Web Application Firewall". Retrieved 7 September 2016.
  36. ^ "Module ngx_mail_auth_http_module". nginx.org. Retrieved 13 September 2012.
  37. ^ "Official documentation: Controlling nginx". nginx.org. Retrieved 3 December 2011.
  38. ^ "nginx documentation". nginx.org. Retrieved 9 June 2015.
  39. ^ "3rdPartyModules — Nginx Community". wiki.nginx.org. Retrieved 9 June 2015.
  40. ^ "How to monitor NGINX". Datadog. 9 July 2015. Retrieved 9 July 2015.
  41. ^ "Application Load Balancing with NGINX Plus". NGINX. Retrieved 9 July 2015.
  42. ^ "NGINX vs. Apache: Our View of a Decade-Old Question". NGINX. 9 October 2015. Retrieved 28 December 2016.
  43. ^ "Web server performance comparison". DreamHost. Retrieved 28 December 2016.
  44. ^ "NGINX vs. Apache (Pro/Con Review, Uses, & Hosting for Each) - HostingAdvice.com". HostingAdvice.com. 5 April 2016. Retrieved 28 December 2016.
  45. ^ Tony Mobily (5 January 2012). "Interview with Igor Sysoev, author of Apache's competitor NGINX". Free Software Magazine. Retrieved 18 October 2013.
  46. ^ "Choosing Your Web Server: Apache Vs. Nginx". Eyerys. 7 December 2016. Retrieved 7 December 2016.
  47. ^ "Nginx: the High-Performance Web Server and Reverse Proxy". Linux Journal. 1 September 2008. Retrieved 16 August 2009. {{cite journal}}: Cite journal requires |journal= (help)
  48. ^ "Company". nginx.com. 3 January 2012. Retrieved 24 February 2012.
  49. ^ Natasha Starkell (11 October 2011). "Russian Nginx Raises $3 Million From International Investors". Techcrunch. Retrieved 20 November 2014.
  50. ^ Darryl K. Taft (8 February 2012). "NGINX Launches Commercial Support for Open-Source Web Server". e Week. Retrieved 18 October 2013.
  51. ^ Steven J. Vaughan-Nichols (8 February 2012). "Commercial Support now available for the open-source NGINX Web server". ZDNet Open Source blog. Retrieved 18 October 2013.
  52. ^ "Nginx Inc. Launches NGINX Plus". 22 August 2013.
  53. ^ Taft, Darryl K. (8 February 2012). "NGINX Launches Commercial Support for Open-Source Web Server". eweek.com. Retrieved 24 February 2012.
  54. ^ Shankland, Stephen (20 December 2013). "Nginx upgrade funded by fans of Google's SPDY Web protocol". CNET. Retrieved 6 January 2014.
  55. ^ "Commercial Support now available for the open-source NGINX Web server". ZDNet. 8 February 2012. Retrieved 28 February 2012.
  56. ^ Sean Michael Kerner (16 October 2013). "Nginx Raises $10 Million in New Funding for Server Development". e Week. Retrieved 18 October 2013.
  57. ^ Frederic Lardinois (15 October 2013). "Nginx Raises $10M Series B Round Led By NEA". Techcrunch. Retrieved 20 November 2014.
  58. ^ Jolie O'Dell (15 October 2013). "Nginx ties up a sweet $10M funding deal and hundreds of millions of users". Venture Beat. Retrieved 18 October 2013.
  59. ^ Frederic Lardinois (9 December 2014). "Nginx Raises $20M Series B1 Round To Drive International Expansion". Techcrunch. Retrieved 9 December 2014.
  60. ^ Jordan Novet (9 December 2014). "Nginx gets $20M, because an open-source web server is just the beginning". VentureBeat. Retrieved 9 December 2014.
  61. ^ "CHANGES-0.5". Retrieved 21 September 2015.
  62. ^ "CHANGES-0.6". Retrieved 21 September 2015.
  63. ^ "CHANGES-0.7". Retrieved 21 September 2015.
  64. ^ "CHANGES-0.8". Retrieved 21 September 2015.
  65. ^ "CHANGES-1.0". Retrieved 21 September 2015.
  66. ^ "CHANGES-1.2". Retrieved 21 September 2015.
  67. ^ "CHANGES-1.4". Retrieved 21 September 2015.
  68. ^ "CHANGES-1.6". Retrieved 21 September 2015.
  69. ^ "CHANGES-1.8". Retrieved 8 March 2016.
  70. ^ "CHANGES". Retrieved 9 May 2016.
  71. ^ "CHANGES". Retrieved 29 June 2016.
  72. ^ "CHANGES". Retrieved 21 November 2016.