Nginx
Nginx Code Completion Exercises
Practice writing NGINX configuration by completing missing directives directly in the example.
Interactive exercises that help you practice, check your understanding, and find what to revisit.
Start here
Complete the config: Nginx Foundations
Fill in the missing pieces of worker architecture, signals, and installation commands.
Explore the collection
Exercises
Browse the complete collection and choose the resource that matches what you want to practice or understand.
-
ExercisesBeginner
Complete the config: Nginx Foundations
Fill in the missing pieces of worker architecture, signals, and installation commands.
~4 min read Start exercise -
ExercisesBeginner
Complete the config: Nginx Config Mechanics
Fill in server blocks, location matching, maps, and includes.
~4 min read Start exercise -
ExercisesBeginner
Complete the config: Nginx Static Content
Fill in root, alias, try_files, MIME, and error-page directives.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx Proxy & Gateway
Fill in proxy_pass, forwarding headers, WebSocket upgrades, and FastCGI wiring.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx Load Balancing
Fill in upstream pools, scheduling algorithms, failure handling, and keepalive.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx TLS & Security
Fill in modern protocols, mTLS verification, session caching, and stapling.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx Traffic Control
Fill in rate limiting, bursts, connection caps, and traffic splitting.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx Caching
Fill in cache paths, TTLs by status, stale serving, and request collapsing.
~4 min read Start exercise -
ExercisesIntermediate
Complete the config: Nginx Performance
Fill in gzip types, static compression, HTTP/3 listeners, and buffering.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Nginx Layer 4 Routing
Fill in stream blocks, PROXY protocol, and SNI-based passthrough.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Nginx Request Control
Fill in rewrite flags, auth_request, mirroring, and signed links.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Nginx Observability
Fill in log formats, JSON escaping, and stub_status.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Nginx Dynamic Upstreams
Fill in resolvers, valid periods, and variable-driven proxy_pass.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Nginx Production Architectures
Fill in edge-tier patterns, container health endpoints, and ingress-shaped routing.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: Extending Nginx
Fill in load_module, configure flags, and njs integration.
~4 min read Start exercise -
ExercisesAdvanced
Complete the config: The Nginx Debugging Toolkit
Fill in working_directory for core dumps, debug logging, and forensics commands.
~4 min read Start exercise