1. Nginx Fundamentals and Process Model
Nginx — pronounced "engine x" — is a high-performance open-source HTTP server, reverse proxy, and IMAP/POP3 mail proxy originally written by Igor Sysoev and first released in 2004....
Read full chapter →The essential Nginx Configuration Essentials cheat sheet: 8 concise chapters you can read in minutes, distilled from the full deck. When you're ready, drill the flashcards or test yourself under exam conditions.
Nginx — pronounced "engine x" — is a high-performance open-source HTTP server, reverse proxy, and IMAP/POP3 mail proxy originally written by Igor Sysoev and first released in 2004....
Read full chapter →At the top level the configuration file lives in the main context, and from there directives branch into several nested blocks. The most important ones are http {} for HTTP-wide se...
Read full chapter →The server {} block is nginx's virtual host. The server_name directive declares which hostnames the block responds to and supports exact names, leading wildcards (\*.example.com),...
Read full chapter →An upstream {} block defines a named group of backend servers that nginx will load-balance across. A typical example declares several server entries, optional weights, and a keepal...
Read full chapter →Caching in nginx is configured in two steps: declare a cache zone on disk, then opt in from a location. The proxy_cache_path directive creates a managed cache directory tree with m...
Read full chapter →TLS is mandatory for any production site. The minimum directives to enable it on a server block are listen 443 ssl http2;, ssl_certificate pointing at the PEM file, ssl_certificate...
Read full chapter →Access control in nginx starts with the simple allow and deny directives, which act as an ACL matched against the client IP. A typical block permits an internal subnet and rejects...
Read full chapter →Some patterns require more than straightforward location matching. For single-page applications using HTML5 history-mode routing, every request should fall through to the applicati...
Read full chapter →Done reading?
Test yourself with the Nginx Configuration Essentials practice exam — timed questions, instant score, full review of wrong answers. Free.
🎯 Take the Practice Exam →