Courses / Professional engineering / NGINX & Reverse Proxy Fundamentals

₹69Self-paced

NGINX & Reverse Proxy Fundamentals

Configure a local NGINX reverse proxy that routes to several backends with TLS, caching, rate limits and readable logs, and change it safely with a rehearsed rollback.

  • Who it's for. Learners who know basic Linux and HTTP and want to put NGINX in front of web applications.
  • Before you start. Comfortable with a terminal and the HTTP request/response model (Networking) and basic Linux shell and file-permission skills.
  • 27 to 45 hours of study with practice
  • 8 modules, 47 lessons
  • 3 guided projects and a final project

What you'll learn

  • Read and write an nginx.conf using contexts and directives and apply every change with test, reload, verify and rollback.
  • Serve static files with root, alias, index and try_files without exposing configuration.
  • Terminate TLS with a local self-signed certificate and diagnose certificate and chain errors.
  • Add compression, caching, rate and size limits and observe their effect in headers and logs.
  • Balance across backends, handle passive failure, harden the proxy and rehearse a rollback.

Skills you'll gain

  • Request routing
  • Server blocks
  • locations
  • Static content
  • Reverse proxy headers
  • TLS
  • certificates
  • Caching
  • limits
  • Logs
  • upstream errors
  • Proxy integration

Tools you'll use

  • NGINX
  • curl
  • TLS with self-signed certificates
  • gzip and proxy_cache
  • Linux shell

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Routing and static files

    Read nginx.conf as nested contexts, predict which server and location block handles a request, and serve static files with root, alias and try_files.

    You build: Guided project: Routing lab with safe change procedure.

  2. 02

    Modules 4 to 6

    Proxying, TLS and caching

    Forward requests to loopback backends with the right headers, terminate TLS with a lab certificate, and add compression, caching and limits.

    You build: Guided project: Static site and proxied API; TLS front with cache and limits.

  3. 03

    Modules 7 to 8

    Logs and full proxy integration

    Design access and error logs, separate upstream errors, then combine everything into a load-balanced, hardened proxy with a safe change and rollback.

    You build: Module practical tasks for modules 7 to 8.

Full curriculum

8 modules and 47 lessons, 27 to 45 hours of study

01Request routing6 lessons, 3 to 4 hours

Lessons

  • Contexts and directives in a minimal nginx.conf
  • Start a lab instance with a prefix and config path
  • Test the configuration before reload and keep a rollback copy
  • listen: choosing the address and port a server accepts
  • Selecting a virtual server by Host header
  • server_name precedence: exact, wildcard, regex, and 444

After this module you can

  • Label main, events, http, server and location contexts in a 15-line config and state which directive lives where.
  • Launch NGINX on loopback ports with -p and -c so that logs, pid and content stay inside one lab directory, then stop it cleanly.
  • Order candidate server_name values by documented precedence and reject unknown hosts with return 444.
02Server blocks and locations6 lessons, 3 to 4 hours

Lessons

  • Prefix locations and longest-match selection
  • Exact matches with = and prefix priority with ^~
  • Regex locations: order of appearance and case sensitivity
  • Fixed responses and redirects with return and error_page
  • rewrite flags last and break, and avoiding the 10-cycle loop
  • Directive inheritance across http, server and location

After this module you can

  • Pick the winning prefix location for a URI by longest matching prefix, independent of file order.
  • Use = for one-URI blocks and ^~ to stop regex evaluation, and show the effect on a request that a regex would otherwise capture.
  • Predict which add_header values a location inherits and show how defining one in the inner block replaces the outer ones.
03Static content5 lessons, 2 to 4 hours

Lessons

  • root: URI appended to a directory path
  • alias versus root inside a location
  • Directory indexes and try_files fallbacks
  • Browser cache headers for static files with expires
  • Static content hygiene: type, size limits and directory exposure

After this module you can

  • Compute the exact file path nginx opens for a URI under root and confirm 200 versus 404 with files on disk.
  • Choose alias when the location prefix must be replaced, and compute both mappings for the same request.
  • Audit a static location for accidental exposure (wrong root, dotfiles, the default body-size limit) and prove the lab only serves files from its html directory.
04Reverse proxy headers6 lessons, 3 to 4 hours

Lessons

  • proxy_pass to a loopback echo backend
  • proxy_pass with and without a URI part
  • The Host header sent upstream: $proxy_host, $host and $http_host
  • Client address headers: X-Forwarded-For and X-Forwarded-Proto
  • Fixing Location redirects and hiding backend response headers
  • Proxying WebSocket upgrades with Upgrade and Connection

After this module you can

  • Proxy a location to a second NGINX server on 127.0.0.1:9001 that echoes request details, and tell proxy from backend in the response.
  • Predict the URI the backend sees from the proxy_pass form and location prefix, with and without a trailing path.
  • Pass the Upgrade and Connection hop-by-hop headers explicitly and drive the Connection value from a map.
05TLS and certificates5 lessons, 2 to 4 hours

Lessons

  • What TLS termination changes in the request path
  • Generate a local self-signed certificate and key
  • Enable listen ssl with ssl_certificate and ssl_certificate_key
  • Redirect HTTP to HTTPS and tell the backend the scheme
  • Certificate chain order, key mismatch and protocol checks

After this module you can

  • Draw and explain the two connections in a TLS-terminating proxy and say what each side can and cannot see.
  • Create a short-lived self-signed certificate with a subjectAltName for a .test name and verify its contents.
  • Reproduce and read the key values mismatch error caused by wrong certificate order, and restrict ssl_protocols for a test.
06Caching and limits7 lessons, 3 to 5 hours

Lessons

  • Compressing text responses with gzip
  • Defining a proxy cache zone and enabling proxy_cache
  • Reading cache results with $upstream_cache_status
  • Serving stale responses when the backend fails
  • Rate limiting requests with limit_req_zone, burst and nodelay
  • Connection and request-size limits with limit_conn and client_max_body_size
  • Cache bypass and safe caching rules

After this module you can

  • Enable gzip for chosen MIME types and verify Content-Encoding and Vary on a response.
  • Create a cache path and zone with proxy_cache_path and enable it in one location so repeated requests reach the backend once.
  • Choose which responses must never be cached and keep per-user locations out of the cache so one user cannot receive another user's page.
07Logs and upstream errors5 lessons, 2 to 4 hours

Lessons

  • Reading the combined access log line field by field
  • Designing a log_format with upstream timing and addresses
  • JSON logs and conditional logging
  • error_log levels and reading nginx's own messages
  • Diagnosing 502, 503 and 504 from the proxy

After this module you can

  • Parse one combined-format log line into its variables and match each field to the request that caused it.
  • Define a named format with $upstream_addr, $upstream_status, $request_time and $upstream_response_time and use it in access_log.
  • Reproduce a refused upstream (502), a slow upstream (504) and a rate-limited request (503), and name the log evidence for each.
08Proxy integration7 lessons, 3 to 5 hours

Lessons

  • Upstream groups and weighted round-robin
  • Choosing a balancing method: least_conn, ip_hash and hash
  • Passive health: max_fails, fail_timeout, backup and down
  • Retries with proxy_next_upstream and what the log shows
  • Keepalive connections to upstream servers
  • Hardening a reverse proxy: version hiding, method and path limits, auth
  • Capstone runbook: staged change, reload, verification and rollback

After this module you can

  • Define an upstream block with two loopback servers and predict the distribution of requests across them with and without weights.
  • Choose among round-robin, least_conn, ip_hash and hash key consistent for stated workloads and show that ip_hash pins a client.
  • Run a complete change on the integrated lab (add a response header on the TLS-terminating, two-backend proxy) following backup, test, reload, verify, and roll back one deliberately faulty change.

What you'll build

3 guided projects along the way, then a final project.

  • Routing lab with safe change procedure

    after module 2
  • Static site and proxied API

    after module 4
  • TLS front with cache and limits

    after module 6

Final project

Local reverse-proxy lab with TLS configuration and upstream failure checks. Choose one option: A. Local reverse-proxy lab for a two-service 'bookshop' (catalogue and orders) with TLS termination, pooled backends and failure checks | B.

What you submit

Source/artifact submission: the full lab directory (configs, certificates generated for the lab only, scripts) without private keys committed to any shared repository.

How it's reviewed

Trainer-reviewed live demonstration on the learner's machine. Marked against the course project review rubric.

Where you'll use it

  • Put a reverse proxy in front of an API with correct Host, client-address and WebSocket headers.
  • Tell 502, 503 and 504 errors apart from log lines and roll back a faulty configuration change.

Roles that use these skills

  • DevOps engineer
  • Systems administrator
  • Site reliability engineer
  • Backend developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need NGINX experience?

No prior NGINX knowledge is assumed. You should be able to run curl against a local port and read a status code.

Where do the labs run?

On your own machine: a throwaway NGINX on loopback, with certificates generated for the lab only.

How is NGINX & Reverse Proxy Fundamentals structured, and is it open now?

It has 8 modules and 47 lessons. It is not yet released to learners.

Be first in when NGINX & Reverse Proxy Fundamentals opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me