Nginx
nginx (pronounced "engine x", and sometimes written as NGINX) is a web server. It can also be used as a reverse proxy, a load balancer, a mail proxy, and an HTTP cache. Russian developer Igor Sysoev created the software, and it was released to the public in 2004. nginx is free and open-source software, released under the terms of the 2-clause BSD license.
A large share of web servers use nginx, often as a load balancer. This helps websites share their visitors across many computers.
A company with the same name, Nginx, Inc., was founded in 2011. It provides support and paid software called NGINX Plus. In March 2019, the company was acquired by F5 for $670 million.
Popularity
As of April 2025, W3Tech's count of all websites ranked nginx first, with 33.8%. Apache was second at 26.4%, and Cloudflare Server was third at 23.4%. As of March 2020, Netcraft estimated that nginx served 20.11% of the million busiest websites, with Cloudflare a little ahead at 22.99%. Apache had 17.83%, and Microsoft Internet Information Services had 4.16%, which rounded out the top four. Some of Netcraft's other statistics showed nginx ahead of Apache.
A 2018 survey of Docker usage found that nginx was the most commonly used technology in Docker containers. In version 5.2 of OpenBSD (November 2012), nginx became part of the OpenBSD system. It was meant to be an alternative to the system's version of Apache 1.3 and to replace it. Later, in version 5.7 (November 2014), nginx was removed in favor of OpenBSD's own httpd(8).
Features
nginx can be set up to serve web content or to act as a proxy server. It can also serve dynamic content on the network using FastCGI, SCGI handlers for scripts, WSGI application servers, or Phusion Passenger modules, and it can work as a software load balancer. nginx handles requests using an asynchronous, event-driven approach instead of threads, and its modular event-driven architecture can give predictable performance under high loads. It can handle more than 10,000 simultaneous connections with a low memory footprint (about 2.5 MB per 10,000 inactive HTTP keep-alive connections). Its web features include serving static files, reverse proxy with caching, load balancing with health checks, TLS/SSL with SNI and OCSP stapling via OpenSSL, support for FastCGI, SCGI, and uWSGI with caching, gRPC support, name- and IP address-based virtual servers, IPv6 compatibility, WebSockets, HTTP/1.1 Upgrade (101 Switching Protocols), HTTP/2 and experimental HTTP/3 support, Encrypted Client Hello TLS extension support, url rewriting and redirection, and automatic issuance and renewal of TLS certificates using the ACME protocol.
nginx can also act as a mail proxy. It supports TLS/SSL, STARTTLS, and SMTP, POP3, and IMAP proxying, and it requires authentication using an external HTTP server or an authentication script. Other features include upgrading the program and its settings without losing client connections, and a module-based design that supports both built-in and third-party modules. The paid Plus product adds features such as advanced load balancing and a wider set of tools for monitoring performance.
nginx in comparison to Apache
nginx was written with a clear goal of being faster than the Apache web server. At first, nginx was faster, but Apache has offered similar speed since version 2.4. This speed gain came with less flexibility. For example, nginx has no built-in way to change access settings for individual files, while Apache can do this with an .htaccess file.
In the past, adding third-party modules to nginx meant recompiling the program from its source code with the modules statically linked. This was partly fixed in version 1.9.11 in February 2016, which added dynamic module loading. However, modules still have to be compiled at the same time as nginx, and not all modules work with this system, so some still need the older static linking process.
NGINX Unit
NGINX Unit is a free, open-source web application server. Nginx, Inc. released it in 2017 to work with applications that are built from many small parts and written in several programming languages. The first release supported applications written in Go, PHP, and Python. By version 1.11.0, it also supported applications written in Java, Node.js, Perl, and Ruby. It also includes features such as changing settings while it runs, sending requests to the right place, and sharing work across several servers. In October 2025, its maintainers archived NGINX Unit, and it no longer receives any updates.
History
Igor Sysoev began developing nginx in 2002 to solve the C10k problem and to meet the needs of several websites, including the Rambler search engine and portal, which was serving 500 million requests per day by September 2008. In 2011, Sysoev and Maxim Konovalov founded Nginx, Inc. to sell business products and support. That year it raised $3 million from BV Capital, Runa Capital, and MSD Capital, the venture fund of Michael Dell. Later rounds of funding included investors such as New Enterprise Associates, Aaron Levie, CEO and founder of Box.com, Index Ventures, and Goldman Sachs.
In March 2019, F5 bought Nginx, Inc. for US$670 million. In December 2019, police raided the company's Moscow offices under a search warrant connected to a copyright claim made by Rambler. In 2022, F5 announced that Igor Sysoev was leaving the company. Later that year, some former nginx developers released Angie, a fork of the software. In 2024, Maxim Dounin, one of nginx's core developers, created another fork called freenginx and criticised F5's involvement in nginx's development.

Quiz time!
5 questions about Nginx
Why was nginx originally written?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Nginx, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.