Nginx (pronounced "engine x"
, stylized as NGINX or nginx) is a
web server
A web server is computer software and underlying Computer hardware, hardware that accepts requests via Hypertext Transfer Protocol, HTTP (the network protocol created to distribute web content) or its secure variant HTTPS. A user agent, co ...
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
Free and open-source software (FOSS) is software available under a license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term encompassing free ...
, released under the terms of the
2-clause BSD license. A large fraction of web servers use Nginx, 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 for $670 million.
Popularity
, W3Tech's web server count of all web sites ranked Nginx first with 33.8%.
Apache was second at 26.4% and Cloudflare Server third at 23.4%.
,
Netcraft
Netcraft is an Internet services company based in London, England. The company provides cybercrime disruption services across a range of industries.
History
Netcraft was founded by Mike Prettejohn in Bath, Somerset. The company provides web s ...
estimated that Nginx served 20.11% of the million busiest websites with Cloudflare a little ahead at 22.99%. Apache at 17.83% and Microsoft
Internet Information Services
Microsoft IIS (Internet Information Services, IIS, 2S) is an extensible web server created by Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2, HTTP/3, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part o ...
at 4.16% 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
OpenBSD is a security-focused operating system, security-focused, free software, Unix-like operating system based on the Berkeley Software Distribution (BSD). Theo de Raadt created OpenBSD in 1995 by fork (software development), forking NetBSD ...
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).
Features
Nginx may be configured to serve static
web content
Web content is the text, visual or audio content that is made available online and user encountered as part of the online usage and experience on websites. It may include text, images, sounds and audio, online videos, among other items place ...
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
* Ability to handle
more than 10,000 simultaneous connections with a low
memory footprint
Memory footprint refers to the amount of main memory that a program uses or references while running.
The word footprint generally refers to the extent of physical dimensions that an object occupies, giving a sense of its size. In computing, t ...
(~2.5 MB per 10k inactive
HTTP keep-alive connections)
* Handling of static files, index files and auto-indexing
*
Reverse proxy with caching
*
Load balancing with in-band health checks
*
TLS/SSL with
SNI and
OCSP stapling support, via
OpenSSL
*
FastCGI,
SCGI,
uWSGI
uWSGI is an open source software application that "aims at developing a full stack for building hosting services". It is named after the Web Server Gateway Interface (WSGI), which was the first plugin supported by the project. uWSGI is maintaine ...
support with caching
*
gRPC
gRPC (acronym for gRPC Remote Procedure Calls) is a cross-platform high-performance remote procedure call (RPC) framework. gRPC was initially created by Google, but is open source and is used in many organizations. Use cases range from microservi ...
support since March 2018, version 1.13.10.
* Name- and IP address-based virtual servers
*
IPv6
Internet Protocol version 6 (IPv6) is the most recent version of the Internet Protocol (IP), the communication protocol, communications protocol that provides an identification and location system for computers on networks and routes traffic ...
-compatible
*
WebSockets since 1.3.13, including acting as a reverse proxy and do load balancing of WebSocket applications.
*
HTTP/1.1 Upgrade (101 Switching Protocols)
*
HTTP/2
HTTP/2 (originally named HTTP/2.0) is a major revision of the HTTP network protocol used by the World Wide Web. It was derived from the earlier experimental SPDY protocol, originally developed by Google. HTTP/2 was developed by the HTTP Working ...
protocol support
*
HTTP/3 protocol support (experimental since 1.25.0)
*
URL rewriting and
redirection
Mail proxy features
*
TLS/SSL support
*
STARTTLS support
*
SMTP
The Simple Mail Transfer Protocol (SMTP) is an Internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages. User-level email clients typi ...
,
POP3, and
IMAP proxy
* Requires authentication using an external HTTP server or by an authentication script
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. 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).
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.
By version 1.11.0, the support was extended to
Java
Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
,
Node.js,
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
, and
Ruby
Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
applications; other features include dynamic configuration, request routing, and load balancing.
History
2000s
Igor Sysoev began development of Nginx in 2002.
Originally, Nginx was developed to solve the
C10k problem, and to fill the needs of multiple
website
A website (also written as a web site) is any web page whose content is identified by a common domain name and is published on at least one web server. Websites are typically dedicated to a particular topic or purpose, such as news, educatio ...
s including the
Rambler search engine and portal, for which it was serving 500 million requests per day by September 2008.
2010s
Nginx Inc. was founded in July 2011 by Sysoev and Maxim Konovalov
to provide commercial products and support for the software.
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
Index Ventures is a European venture capital firm with headquarters in both San Francisco and London. It invests primarily in tech companies.
History
Index Ventures has its origins in a Switzerland, Swiss bond (finance), bond-trading firm cal ...
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. 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
The Goldman Sachs Group, Inc. ( ) is an American multinational investment bank and financial services company. Founded in 1869, Goldman Sachs is headquartered in Lower Manhattan in New York City, with regional headquarters in many internationa ...
"to Accelerate Application Modernization and Digital Transformation for Enterprises".
On 11 March 2019, F5 acquired Nginx, Inc. for US$670 million.
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. 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.
2020s
On 18 January 2022, it was announced that Igor Sysoev was leaving Nginx and F5.
In late 2022, Angie, an open source fork of Nginx, was released by some of the former Nginx developers. Igor Sysoev is not actively involved in this project.
In February 2024, Maxim Dounin, one of Nginx's core developers, created a Nginx fork calle
freenginx In the open letter announcing the creation, Maxim Dounin criticised F5's interference with Nginx's development.
See also
*
Comparison of web server software
*
List of Apache–MySQL–PHP packages
*
Web accelerator
*
References
External links
*
AngieFreeNginx
{{Web server software
2002 software
Software companies established in 2011
Cross-platform free software
Free proxy servers
Free software programmed in C
Free web server software
Proxy server software for Linux
Reverse proxy
Software companies of Russia
Software using the BSD license
Unix network-related software
Web server software
Web server software for Linux
Russian inventions
Russian companies established in 2011
2019 mergers and acquisitions