Nginx Explained

NGINX
Author:Igor Sysoev
Developer:F5, Inc.
Programming Language:C
Operating System:BSD variants, HP-UX, IBM AIX, Linux, macOS, Solaris, Microsoft Windows, and other
  • nix
flavors
Genre:Web server, reverse/mail proxy server
License:Nginx: BSD-2-Clause License
Nginx Plus: Proprietary software[1]

Nginx (pronounced "engine x", stylized as NGINX or nginx) is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. The software was created by Russian developer Igor Sysoev and publicly released in 2004. Nginx is free and open-source software, released under the terms of the 2-clause BSD license. A large fraction of web servers use Nginx,[2] often as a load balancer.

A company of the same name was founded in 2011 to provide support and NGINX Plus paid software. In March 2019, the company was acquired by F5, Inc. for $670 million.

Popularity

, W3Tech's web server count of all web sites ranked Nginx first with 33.6%. Apache was second at 31.4% and Cloudflare Server third at 21.6%., Netcraft estimated that Nginx served 22.01% of the million busiest websites with Apache a little ahead at 23.04%. Cloudflare at 19.53% and Microsoft Internet Information Services at 5.78% rounded out the top four servers for the busiest websites. Some of Netcraft's other statistics show Nginx ahead of Apache.

A 2018 survey of Docker usage found that Nginx was the most commonly deployed technology in Docker containers. In OpenBSD version 5.2 (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, but later in version 5.7 (November 2014) it was removed in favor of OpenBSD's own httpd(8).[3]

Features

Nginx may be configured to serve static web content or to act as a proxy server.

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

Nginx uses an asynchronous event-driven approach, rather than threads, to handle requests. Nginx's modular event-driven architecture can provide predictable performance under high loads.

HTTP proxy and Web server features

Mail proxy features

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

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

Nginx in comparison to Apache

Nginx was written with an explicit goal of outperforming the Apache web server. While in the past Nginx used to outperform Apache, since Apache 2.4 they offer similar performance. [11] [12] This former performance boost came at a cost of decreased flexibility, such as the ability to override system-wide access settings on a per-file basis (Apache accomplishes this with an .htaccess file, while Nginx has no such feature built in).[13] [14]

Formerly, adding third-party modules to Nginx required recompiling the application from source with the modules statically linked. This was partially overcome in version 1.9.11 in February 2016, with the addition of dynamic module loading. However, the modules still must be compiled at the same time as Nginx, and not all modules are compatible with this system; some require the older static linking process.

Nginx Unit

Nginx Unit is an open-source web application server, released in 2017 by NGINX, Inc. to target multi-language microservices-based applications. The initial release supported applications written in Go, PHP, and Python.[15] By version 1.11.0, the support was extended to Java, Node.js, Perl, and Ruby applications; other features include dynamic configuration, request routing, and load balancing.[16] [17]

History

Igor Sysoev began development of Nginx in 2002. Originally, Nginx was developed to solve the C10k problem, and to fill the needs of multiple websites including the Rambler search engine and portal, for which it was serving 500 million requests per day by September 2008.

Nginx Inc. was founded in July 2011 by Sysoev and Maxim Konovalov[18] to provide commercial products and support for the software.

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

In October 2011, Nginx, Inc. raised $3 million from BV Capital, Runa Capital, and MSD Capital, Michael Dell's venture fund.

The company announced commercial support options for companies using Nginx in production. Nginx offered commercial support in February 2012, and paid Nginx Plus subscription in August 2013. Support packages focus on installation, configuration, performance improvement, etc. Support includes proactive notifications about major changes, security patches, updates and patches. Nginx, Inc. also offers consulting services to assist customers in custom configuration or adding additional features.

In October 2013, Nginx, Inc. raised a $10 million series B investment round led by New Enterprise Associates. That round included previous investors, as well as Aaron Levie, CEO and founder of Box.com. 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.

In September 2017, Nginx announced an API management tool, NGINX Controller, which would build off of their API Gateway, NGINX Plus.[19] [20] In October 2017, Nginx, Inc. announced general available Nginx Amplify SaaS providing monitoring and analytics capabilities for Nginx.

In June 2018, Nginx, Inc. raised $43 million in Series C Funding in a round led by Goldman Sachs "to Accelerate Application Modernization and Digital Transformation for Enterprises".[21]

On 11 March 2019, F5, Inc. acquired Nginx, Inc. for US$670 million.[22]

On 12 December 2019, it was reported that the Moscow offices of Nginx Inc. had been raided by police, and that Sysoev and Konovalov had been detained. The raid was conducted under a search warrant connected to a copyright claim over Nginx by Rambler—which asserts that it owns all rights to the code because it was written while Sysoev was an employee of the company.[23] On 16 December 2019, Russian state lender Sberbank, which owns 46.5 percent of Rambler, called an extraordinary meeting of Rambler's board of directors asking Rambler's management team to request Russian law enforcement agencies cease pursuit of the criminal case, and begin talks with Nginx and with F5.[24]

On 18 January 2022, it was announced that Igor Sysoev was leaving Nginx and F5.[25]

In late 2022, Angie, an open source fork of Nginx, was released by some of the former Nginx developers.[26] [27] Igor Sysoev is not actively involved in this project.[28]

In February 2024, Maxim Dounin, one of Nginx's core developers, created a Nginx fork called freenginx. In the open letter announcing the creation, Maxim Dounin criticised F5's interference with Nginx's development.[29]

See also

External links

Notes and References

  1. Web site: End User License Agreement . 29 March 2020.
  2. Web site: Survey . 2023-07-31 . July 2023 Web Server Survey Netcraft . 2023-08-26 . www.netcraft.com . en-US.
  3. Web site: Upgrade Guide: 5.6 to 5.7 . 2024-02-18.
  4. Web site: NGINX Docs | NGINX Reverse Proxy . NGINX Documentation.
  5. Web site: NGINX Docs | HTTP Load Balancing . NGINX Documentation.
  6. Web site: Introducing gRPC Support with NGINX 1.13.10 . 17 March 2018 . NGINX.
  7. Web site: WebSocket proxying . nginx.org.
  8. Web site: Using NGINX as a WebSocket Proxy . 17 May 2014 . NGINX.
  9. Web site: 23 May 2023 . Changes with nginx 1.25.0 . 25 May 2023 . nginx news.
  10. Web site: NGINX Docs | Configuring NGINX as a Mail Proxy Server . NGINX Documentation.
  11. Web site: Apache httpd 2.4. 2012-02-08. 2012-01-27. https://web.archive.org/web/20120127033804/http://people.apache.org/~jim/presos/ACNA11/Apache_httpd_cloud.pdf. live.
  12. Web site: Picking a Proxy Server. 14 April 2014. 19 February 2016. 3 March 2016. https://web.archive.org/web/20160303105755/http://www.slideshare.net/bryan_call/choosing-a-proxy-server-apachecon-2014. live.
  13. News: Apache vs Nginx Performance: Optimization Techniques — SitePoint . Jankov . Tonino . 13 June 2018 . . 22 October 2018.
  14. Web site: Which web server should you use — Apache or NGINX? . TechRepublic. 18 August 2023 .
  15. Web site: Nginx goes beyond its server roots and launches its application platform . techcrunch.com . 6 September 2017 . 15 April 2020 .
  16. Web site: CHANGES . unit.nginx.org . 15 April 2020 .
  17. Web site: March 2020 Web Server Survey . news.netcraft.com . 20 March 2020 . 15 April 2020 .
  18. Web site: Maxim Konovalov . NGINX . 13 October 2019.
  19. News: NGINX releases its new NGINX Application Platform . 6 September 2017 . SD Times . 7 November 2018.
  20. News: Introducing NGINX API Management: Manage NGINX Plus API Gateways with NGINX Controller - NGINX . 9 October 2018 . NGINX . 7 November 2018.
  21. NGINX Raises $43 Million in Series C Funding to Accelerate Application Modernization and Digital Transformation for Enterprises . 20 June 2018 . 11 October 2018.
  22. Web site: F5 acquires NGINX: What to expect from the deal . Vaughan-Nichols . Steven J. . ZDNet . 12 December 2019.
  23. Web site: Russian police raid NGINX Moscow office . Cimpanu . Catalin . ZDNet . 12 December 2019.
  24. News: Russia's Rambler drops effort for criminal case against Nginx web server . Tsydenova . Nadezhda . 16 December 2019 . Reuters . 4 May 2020.
  25. Whiteley. Rob. Do Svidaniya, Igor, and Thank You for NGINX. 19 January 2022. NGINX. 18 January 2022. we announce today Igor has chosen to step back from NGINX and F5 in order to spend more time with his friends and family and to pursue personal projects. https://web.archive.org/web/20220119003123/https://www.nginx.com/blog/do-svidaniya-igor-thank-you-for-nginx/. 19 January 2022 . live.
  26. Web site: Darkcrizt . 2022-11-03 . Angie, the Nginx fork created by developers who left F5 . 2023-12-14 . Desde Linux . en.
  27. Web site: Angie: A New NGINX Fork Developed by Some of Its Former Devs . 2023-12-14 . Vuink.com . en.
  28. Web site: Borisov . Bobby . 2022-10-31 . Angie: A New NGINX Fork Developed by Some of Its Former Devs . 2023-12-14 . Linuxiac . en-US.
  29. Web site: Core NGINX Developer Forks Web Server Into Freenginx . 2024-02-15 . . en . Larabel . Michael . 2024-02-14.