NGINX
Also known as: engine x
Free and open-source web server, reverse proxy and load balancer built on an event-driven design that handles many concurrent connections efficiently.
NGINX (pronounced "engine x") is a free and open-source web server that is also widely used as a reverse proxy, load balancer, HTTP cache and mail proxy. It serves static files efficiently, forwards requests to application servers written in languages such as Python, PHP or JavaScript, terminates TLS connections and distributes traffic among multiple backends. Configuration is written in a hierarchical text file of directives grouped into blocks for servers, locations and pools of upstream servers.
Russian engineer Igor Sysoev began NGINX to address the C10K problem, the challenge of handling ten thousand simultaneous connections on one server, and released it publicly in 2004. Instead of dedicating a process or thread to each connection, NGINX runs a small number of worker processes that each use an event loop to handle many connections asynchronously, which keeps memory use low and predictable under heavy load. Nginx, Inc. was formed in 2011 to offer commercial support and an extended edition, NGINX Plus, and F5 Networks acquired it in 2019.
NGINX became one of the most used web servers on the internet, competing with and often sitting in front of the Apache HTTP Server. It appears in container images, Kubernetes ingress controllers and content delivery network edge nodes. Because it is usually the first program to receive outside traffic, careful configuration matters: misconfigured headers, permissive proxy rules or unpatched versions can expose backend systems, so administrators pair it with regular updates and security hardening practices.
Key points
- NGINX uses an asynchronous, event-driven architecture to serve many connections with little memory.
- Beyond serving files, it is widely deployed as a reverse proxy, load balancer and TLS terminator.
- Igor Sysoev released NGINX publicly in 2004 under a two-clause BSD license.
- F5 Networks acquired Nginx, Inc., the company behind the commercial NGINX Plus, in 2019.
Related entries
Reverse Proxy
Server that sits in front of one or more backend servers, receiving client requests on their behalf and forwarding them to the right destination.
Load Balancer
Device or software that distributes incoming network traffic across multiple servers to improve capacity, responsiveness and availability.
HTTP
Stateless request-response protocol that web browsers, servers and other clients use to request and transfer resources such as web pages and data.
Transport Layer Security
Cryptographic protocol that encrypts and authenticates data sent between applications over a network, most visibly securing web traffic as HTTPS.
Kubernetes
Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.
Docker Engine
Open-source container runtime and toolset that builds, ships and runs applications in isolated Linux containers from portable images.
Let's Encrypt
Free, automated and open certificate authority, run by a nonprofit, that issues TLS certificates so websites can use HTTPS at no cost.
Event Loop
Programming construct that repeatedly waits for events, such as user input or completed network requests, and dispatches each to its handler.
Featured in guides
Referenced by
Other entries that discuss or point to NGINX.