Nginx
Master NGINX: server blocks and location matching, static files, reverse proxying, load balancing, TLS with HTTP/2 and HTTP/3, caching, rate limits and logging.
What you'll learn
- Explain NGINX's event-driven architecture and manage configuration safely with tests and graceful reloads.
- Route requests with server blocks and location matching rules, and serve static sites and single-page apps.
- Configure reverse proxying with correct forwarded headers, timeouts, buffering and WebSocket support.
- Load balance HTTP and TCP traffic with suitable methods, passive health checks and keepalive.
- Secure sites with modern TLS, HTTP/2, HTTP/3, redirects, HSTS, rate limits, access control and headers.
- Improve performance and observability with caching, compression, tuning, structured logs and metrics.
Syllabus
NGINX Foundations
- What NGINX Does and How It Works
- Installing, Files and Controlling NGINX
- Configuration Structure, Contexts and Inheritance
Server Blocks, Locations and Static Files
- Server Blocks and Request Routing by Host
- Location Matching Rules
- Serving Static Files and Single-Page Apps
Reverse Proxying
- proxy_pass and Forwarded Headers
- URIs, Timeouts, Buffering and WebSockets
- Proxying to Application Servers: Node, Python and PHP
Load Balancing
- Upstream Groups and Balancing Methods
- Failures, Retries and Keepalive to Upstreams
- TCP and UDP Load Balancing with the stream Module
HTTPS, HTTP/2 and HTTP/3
Caching, Compression and Performance
Security, Limits and Observability
- Rate Limiting, Connection Limits and Request Size
- Access Control, Authentication and Security Headers
- Logging, Metrics and Troubleshooting