# KodeKloud: Courses Nginx for Beginners ## Nginx for Beginners ### Introduction - [Course: Nginx for Beginners](https://notes.kodekloud.com/docs/Nginx-for-Beginners/index.md): Introductory NGINX course covering installation, configuration, TLS, performance, logging, debugging, and hands-on labs for deploying and operating NGINX in real-world environments. - [Introduction and Objectives](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Introduction-and-Objectives/page.md): Introductory NGINX course covering installation, configuration, TLS, performance, logging, debugging, and hands-on labs for deploying and operating NGINX in real-world environments. - [Web Servers](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Web-Servers/page.md): Overview of web servers, how browsers request pages, protocols, scaling and architectures, plus common implementations like NGINX and Apache with HTTPS best practices - [Introduction to Nginx](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Introduction-to-Nginx/page.md): Concise overview of Nginx features, architecture, distributions, and common use cases as a high performance web server, reverse proxy, load balancer, and HTTP cache - [Nginx Architecture](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Nginx-Architecture/page.md): Explains NGINX architecture, focusing on event-driven non-blocking I/O and master worker processes that enable efficient, high concurrency handling of thousands of simultaneous connections. - [Nginx Use Cases](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Nginx-Use-Cases/page.md): Overview of common NGINX roles—load balancer, reverse and forward proxy, and caching, with explanations, analogies, and concise configuration examples to improve performance, scalability, and security - [Summary](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Introduction/Summary/page.md): Concise overview of Nginx, its architecture, editions, deployment options, performance benefits, common use cases, and next steps for hands on installation. ### Install & Config - [Install Config Introduction](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Install-Config-Introduction/page.md): Guide to installing and configuring Nginx on multiple platforms, managing its service lifecycle, structuring nginx.conf and server blocks, hosting a static site, and configuring firewall access - [Nginx Overview](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Nginx-Overview/page.md): Overview of NGINX configuration, nginx.conf structure, server blocks, directory layout, modules, and essential administration commands and operational tips for managing NGINX on Linux systems - [Install Config](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Install-Config/page.md): Explains what package managers do and shows commands to install NGINX across apt, yum/dnf, Homebrew, and Chocolatey, plus reasons to use system package managers. - [Demo Nginx Install Config](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Demo-Nginx-Install-Config/page.md): Guide to install, start, verify, and inspect Nginx on Ubuntu including configuration files, testing local response, service management, and log checks. - [Demo First Website with Nginx](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Demo-First-Website-with-Nginx/page.md): Step by step guide to set up a minimal Hello World website served by NGINX, including virtual host configuration, site files, enabling the site, testing and reloading. - [Firewall Ports](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Firewall-Ports/page.md): Explains firewalls, common ports, and basic UFW and FirewallD commands plus tools to inspect listening sockets and secure remote access - [Demo Firewall Ports Install Config](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Demo-Firewall-Ports-Install-Config/page.md): Guide to using UFW on Ubuntu to enable and configure firewall rules for NGINX, SSH, and Flask, and best practices like reverse proxying backend services. - [Summary](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Install-Config/Summary/page.md): Practical guide to installing, configuring, and operating NGINX, including package management, process control, configuration layout, serving sites, security, and production deployment tips. ### Intermediate Config - [Intermediate Config introduction](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Intermediate-Config-introduction/page.md): An intermediate NGINX configuration guide covering virtual hosts, redirects, URL rewriting, upstreams, load balancing, reverse proxying, caching, testing, and best practices for production deployments - [Virtual Servers Multiple Sites](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Virtual-Servers-Multiple-Sites/page.md): Explains how NGINX virtual servers let one NGINX instance host multiple websites, covering server block directives, routing by Host header, configuration organization, and best practices. - [Demo Configure Multiple Sites](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Demo-Configure-Multiple-Sites/page.md): Guide to configure Nginx name based virtual hosting to serve multiple domains from one server using separate server blocks, document roots, symlinks in sites enabled, and curl testing. - [URL Redirect Rewrite](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/URL-Redirect-Rewrite/page.md): Explains how to use Nginx redirects and rewrites, differences, examples, variables, regex captures, status codes, and best practices for internal mapping and SEO-friendly redirects - [Demo Configure URL Redirect](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Demo-Configure-URL-Redirect/page.md): Guide to configure NGINX to permanently redirect HTTP traffic to HTTPS, enable TLS with certificates, update firewall rules, and serve the same site over secure port 443. - [Demo Configure URL Rewrite](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Demo-Configure-URL-Rewrite/page.md): Demonstrates using Nginx rewrite rules to map legacy /images/ URLs to /pics/ paths, explaining internal rewrites versus permanent redirects, configuration, testing, and best practices - [Load Balancer](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Load-Balancer/page.md): Explains NGINX load balancing methods, configuration examples, and health check behavior to distribute traffic and improve performance and reliability across multiple servers. - [Demo Load Balancer](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Demo-Load-Balancer/page.md): Guide to configuring an Nginx load balancer using round-robin, weighted round-robin, and ip_hash sticky sessions with Apache backends plus firewall and production checklist - [Reverse Proxy](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Reverse-Proxy/page.md): Explains reverse proxies, NGINX features like SSL termination, load balancing, caching, routing, and practical configuration examples for production deployments - [Demo Reverse Proxy](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Demo-Reverse-Proxy/page.md): Guide to configure Nginx as a reverse proxy forwarding HTTP to two Flask backends with firewall restrictions and testing instructions. - [Summary](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Intermediate-Config/Summary/page.md): NGINX configuration guide covering server blocks, HTTP to HTTPS redirects, rewrites, reverse proxying, upstream load balancing, and caching best practices ### Security - [Security Introduction](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Security-Introduction/page.md): Overview of Nginx web security covering HTTPS and TLS, HTTP security headers, basic authentication, IP allow and deny rules, and Fail2Ban for automated IP blocking. - [HTTPS](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/HTTPS/page.md): Explains HTTPS/TLS, certificates, CAs, handshake, obtaining certificates with Let's Encrypt and mkcert, Nginx configuration, and production hardening practices. - [Demo HTTPS](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Demo-HTTPS/page.md): Guide to securing web traffic with NGINX by redirecting HTTP to HTTPS, generating test certificates, terminating TLS at the proxy, and optionally proxying to HTTPS backend servers - [HTTP Headers](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/HTTP-Headers/page.md): Overview of HTTP headers, their types, security, caching, CORS, proxy usage, and NGINX configuration best practices. - [Demo HTTP Headers](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Demo-HTTP-Headers/page.md): Configuring NGINX to add security HTTP headers, terminate TLS and load balance to Apache backends while forwarding client proxy headers for accurate backend logging. - [Basic Authentication](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Basic-Authentication/page.md): How to set up and use HTTP Basic Authentication with NGINX using .htpasswd, configuring auth_basic and securing access for internal or limited-audience paths. - [Demo Authentication](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Demo-Authentication/page.md): Adding HTTP Basic Authentication to NGINX to protect an /admin endpoint using an .htpasswd file, password hashing, and config validation - [Blocking Traffic](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Blocking-Traffic/page.md): How to block and allow traffic in NGINX, using allow/deny directives, CIDR notation, and Fail2Ban for automated IP banning, plus handling real client IPs behind proxies - [Demo Blocking Traffic](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Demo-Blocking-Traffic/page.md): Guide showing Nginx allow and deny directives and configuring fail2ban to automatically block IPs after repeated failed HTTP Basic authentication attempts. - [Summary](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Security/Summary/page.md): Practical guidance for securing web traffic with NGINX reverse proxies including TLS termination, HTTPS enforcement, client header forwarding, security headers, access control, authentication, and operational best practices ### Performance - [Performance Introduction](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Performance-Introduction/page.md): Practical NGINX performance and protection techniques including rate limiting, connection throttling, caching, gzip compression, logging, and troubleshooting for web server optimization and mitigation. - [Rate Limiting](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Rate-Limiting/page.md): Explains Nginx rate limiting concepts and configuration for request and connection limits to mitigate DDoS, brute force, and scraping attacks with examples and best practices - [Demo Rate Limiting](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Demo-Rate-Limiting/page.md): Demo showing configuration, testing, and tuning of NGINX request and connection rate limiting using limit_req, limit_conn, curl, ApacheBench, and log analysis. - [Caching](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Caching/page.md): Explains HTTP caching with NGINX as a reverse proxy, configuration directives, TTLs, cache keys, bypass rules and verification tips - [Demo Caching](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Demo-Caching/page.md): Demonstrates adding disk-backed NGINX proxy caching in front of Apache backends to reduce backend load, configure proxy_cache, enlarge assets, and verify hits via logs and browser DevTools - [Compression](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Compression/page.md): Explains enabling and testing gzip and Brotli in NGINX to compress text assets, reduce bandwidth and page load times, and tune compression versus CPU tradeoffs. - [Demo Compression](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Demo-Compression/page.md): Demonstrates enabling gzip in Nginx reverse proxy, measuring transfer improvements with enlarged images and verifying compression via browser devtools and curl. - [Connection Handling](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Connection-Handling/page.md): NGINX connection handling and tuning guide covering worker processes, keepalive, HTTP versions, sendfile, and TCP socket optimizations for higher throughput and lower latency. - [Monitoring Troubleshooting](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Monitoring-Troubleshooting/page.md): Practical guidance for monitoring and troubleshooting NGINX including access and error logs, stub_status metrics, observability integrations, centralized logging, config validation and safe reloads. - [Demo Monitoring](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Demo-Monitoring/page.md): Guide to installing Datadog Agent and configuring NGINX integration to collect and view host and NGINX metrics, secure stub_status endpoint, and troubleshoot metrics. - [Demo Troubleshooting](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Demo-Troubleshooting/page.md): Practical, prioritized troubleshooting tips for NGINX covering configuration validation, reloads, logging, per-site logs, curl checks, firewalls, and common fixes to identify root causes quickly. - [Summary](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Performance/Summary/page.md): Practical NGINX tuning guide covering rate limiting, caching, compression, keepalive, worker tuning, logging and monitoring to improve web performance and reliability ### Conclusion - [Conclusion](https://notes.kodekloud.com/docs/Nginx-for-Beginners/Conclusion/Conclusion/page.md): Summary of an NGINX course covering fundamentals, configuration, optimization, security, deployment, and practical labs with examples and next steps for production and advanced topics.