Safekipedia

Nginx

Adventurer · ages 7–10Adapted from Wikipedia
The logo of nginx – open source web server and a reverse proxy server

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 made available to the public in 2004. nginx is free and open-source software, released under the terms of the 2-clause BSD license.

Many websites around the world use nginx. It is often used as a load balancer, which helps websites share their visitors across many computers.

A company with the same name, Nginx, Inc., was started in 2011. It offers support and paid software called NGINX Plus. In March 2019, the company was bought by F5 for $670 million.

Popularity

As of April 2025, a count by W3Tech 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. Cloudflare was a little ahead at 22.99%. Apache had 17.83%, and Microsoft Internet Information Services had 4.16%. These four made up 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 technology most often used 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. OpenBSD used its own httpd(8) instead.

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. It can also work as a load balancer, which shares visitor requests across several computers. nginx handles requests in an asynchronous, event-driven way instead of using threads. This design can give steady performance even when many people use it at once. It can handle more than 10,000 simultaneous connections while using little memory. Its web features include serving static files, reverse proxy with caching, and load balancing with health checks. It also supports TLS/SSL with SNI and OCSP stapling through OpenSSL, along with FastCGI, SCGI, and uWSGI. Other features include gRPC support, IPv6 compatibility, WebSockets, HTTP/1.1 Upgrade (101 Switching Protocols), HTTP/2, and experimental HTTP/3 support. It also supports Encrypted Client Hello, url rewriting and redirection, and it can renew TLS certificates automatically using the ACME protocol.

nginx can also act as a mail proxy. It supports TLS/SSL, STARTTLS, SMTP, POP3, and IMAP. It asks users to log in using an outside HTTP server or a login script. Other features include updating the program and its settings without losing connections to clients, and a design that lets people add extra parts called modules. The paid Plus product adds features such as more advanced load balancing and more tools for watching performance.

nginx in comparison to Apache

nginx was made with a clear goal: to be faster than the Apache web server. At first, nginx was faster. Apache has since become just as fast, starting with version 2.4. The speed of nginx came with fewer features for control. For example, nginx has no built-in way to change access settings for single files. 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. In February 2016, version 1.9.11 partly fixed this by adding dynamic module loading. Modules still have to be built at the same time as nginx, though. Also, not all modules work with this system, so some still need the older static linking method.

NGINX Unit

NGINX Unit is a free web application server that anyone can use and change. Nginx, Inc. released it in 2017. It was made to work with apps built from many small parts and written in different programming languages. The first version worked with apps written in Go, PHP, and Python. By version 1.11.0, it also worked with apps written in Java, Node.js, Perl, and Ruby. It also has features such as changing settings while it runs, sending requests to the right place, and sharing work across several servers. In October 2025, its makers stopped working on it, so it no longer gets any updates.

History

Igor Sysoev began making nginx in 2002. He wanted to solve the C10k problem and meet the needs of some websites, including the Rambler search engine and portal. By September 2008, Rambler was handling 500 million requests per day.

In 2011, Sysoev and Maxim Konovalov started Nginx, Inc. to sell business products and support. That year, the company raised $3 million from BV Capital, Runa Capital, and MSD Capital, a fund started by Michael Dell. Later, more investors joined, including New Enterprise Associates, Aaron Levie, who leads Box.com, Index Ventures, and Goldman Sachs.

In March 2019, F5 bought Nginx, Inc. for US$670 million. In December 2019, police searched the company's Moscow offices with a search warrant. This was connected to a copyright claim made by Rambler. In 2022, F5 said that Igor Sysoev was leaving the company. Later that year, some former nginx developers released Angie, a new version of the software based on nginx. In 2024, Maxim Dounin, one of nginx's main developers, made another version called freenginx. He also spoke out against F5's role in nginx's development.

Quiz time!

4 questions about Nginx

Question 1 of 4

What is nginx mainly?

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.