> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction to Nginx

> Introduction to Nginx web server, its event driven architecture, uses as reverse proxy and load balancer, static content serving, editions, performance strengths and widespread adoption

## What is Nginx?

Nginx is a high-performance web server and reverse proxy first released in the early 2000s. Built around an event-driven, asynchronous architecture, it was designed to address the limitations of older process-per-connection servers and to scale efficiently on modern workloads. Nginx runs on Linux, macOS, and Windows (note: Windows builds exist but Unix-like systems—especially Linux—are the most common production platforms).

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-introduction-performance-growth-badge.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=8d56e2b4b75430142de478241ba693b4" alt="A presentation slide titled &#x22;Nginx – Introduction&#x22; with the line &#x22;It was designed to overcome the limitations of older web servers.&#x22; The slide also shows performance-related icons, including a growth chart and a thumbs-up badge." width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-introduction-performance-growth-badge.jpg" />
</Frame>

Nginx was created to compete with long-established servers like Apache and IIS that used process- or thread-per-connection models. Its non‑blocking, event-driven workers allow a single process to manage thousands of simultaneous connections with lower memory use and latency — making Nginx ideal for high-concurrency scenarios.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-introduction-load-balancing-diagram.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=031e9b0ec57eea7c44663c52fc22d7d6" alt="A slide titled &#x22;Nginx – Introduction&#x22; showing a central server icon connected by dotted arrows to five user avatar icons. It visually represents users routing or load-balancing traffic to a single server." width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-introduction-load-balancing-diagram.jpg" />
</Frame>

## Key strengths and common uses

* Serving static content (HTML, CSS, images, audio, video) with minimal resource consumption and low latency.
* Acting as a reverse proxy and edge server to terminate TLS, perform caching, and shield backend services.
* Load balancing and traffic routing across multiple application servers.
* Supporting extensibility via modules and integrations (e.g., OpenResty for Lua scripting).

Serving static content is one of Nginx’s most polished capabilities. It’s optimized to deliver assets quickly and efficiently, which is why many sites use Nginx as the front-facing server in front of application servers or CDNs.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-static-content-slide.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=e96fd24b5109bf3c9226e825a7ea1e43" alt="A presentation slide titled &#x22;Serving Static Content With Nginx&#x22; showing HTML5, CSS3 and Node.js icons inside a rounded pink panel with labeled boxes for &#x22;Frontend Software&#x22; and &#x22;Videos.&#x22; The subtitle reads &#x22;Effortless handling of various file types.&#x22;" width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-static-content-slide.jpg" />
</Frame>

Under the hood, Nginx’s worker model is non-blocking and asynchronous. This design enables a single worker to handle many connections concurrently, which often yields better throughput and lower latency compared to traditional architectures that spawn one thread or process per connection.

Nginx is available in both the free open source community edition and a commercially supported edition that includes additional features and professional support.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/commercial-variant-open-source-paid-support.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=c4c7aacdb714d54d454b946dfa949b4b" alt="A presentation slide titled &#x22;Commercial Variant&#x22; with a turquoise box labeled &#x22;Open-Source Community Version,&#x22; a purple box labeled &#x22;Commercial Paid Version,&#x22; and a smaller pink bar labeled &#x22;Paid Support.&#x22; Copyright KodeKloud is shown at the bottom left." width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/commercial-variant-open-source-paid-support.jpg" />
</Frame>

|                 Edition | Best for                                            | Notable features                                                                         |
| ----------------------: | --------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|     Open-source (nginx) | Developers, hobby projects, many production sites   | Core web server, reverse proxy, load balancing, caching, modular architecture            |
| Commercial (Nginx Plus) | Enterprises needing support and additional features | Active support, advanced monitoring, session persistence, commercial modules and tooling |

<Callout icon="lightbulb" color="#1CB2FE">
  If you want the open source distribution, use [nginx.org](https://nginx.org). For the commercial Nginx Plus and related products, use [nginx.com](https://nginx.com). The sites are related but serve different editions and documentation.
</Callout>

## Adoption and market presence

Nginx has broad adoption across the web due to its performance, flexibility (reverse proxying, load balancing, caching, TLS termination), and rich ecosystem. Surveys and market analyses frequently show Nginx as one of the most used web servers globally — including significant share among top-ranked websites and in overall domain counts.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-metrics-netcraft-market-share.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=6b1549ebe4b8f3a357858df621a6d8cb" alt="A slide titled &#x22;NGINX Metrics&#x22; showing a Netcraft market-share line chart and a table reporting web server usage, with nginx listed as the most popular server (~21% in June 2024). The left column contains short bullet points comparing nginx to OpenResty and Cloudflare." width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/nginx-metrics-netcraft-market-share.jpg" />
</Frame>

Because of these attributes, Nginx is trusted by thousands of organizations — including many recognizable technology and media companies.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/5f0mE-FaFIAKk82W/images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/testimonials-logos-grid.jpg?fit=max&auto=format&n=5f0mE-FaFIAKk82W&q=85&s=f3751a18221d0b1d5ec7e84a02aeef58" alt="A slide titled &#x22;Testimonials&#x22; showing a grid of well-known company logos. Examples include Adobe, Atlassian, Cisco, Disney+, Instagram, Airbnb, LinkedIn, Cloudflare, GitHub, Salesforce, Netflix, IBM, Microsoft, Facebook, X and Zendesk." width="1920" height="1080" data-path="images/Nginx-For-Beginners/Introduction/Introduction-to-Nginx/testimonials-logos-grid.jpg" />
</Frame>

In the lessons that follow, we’ll explore Nginx’s architecture, configuration basics, and common deployment patterns (reverse proxy, load balancing, caching, TLS termination), showing how its design enables high performance and scalability for modern web applications.

## Links and references

* Nginx official (open source): [https://nginx.org](https://nginx.org)
* Nginx commercial (Nginx Plus): [https://nginx.com](https://nginx.com)
* Nginx documentation and configuration examples: [https://nginx.org/en/docs/](https://nginx.org/en/docs/)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/nginx-for-beginners/module/9e6f72d7-933d-42dd-a948-ae48d66aecb6/lesson/7c5a412f-6586-46e5-acb2-b1ea364b4de8" />
</CardGroup>
