Free course

Nginx Course

Learn to serve websites and reverse proxy applications with Nginx, HTTPS, safe configuration changes, access controls, logs, and production checks.

5 modules · 25 lessons · No signup

Prerequisites: Shell Commands, Linux Basics, HTTP and DNS

~~~

Your progress

of lessons completed.

Course completed.

What you'll learn

Configure and operate an Nginx server that serves static files, proxies an application, terminates HTTPS, and fails safely.

Take this course offline

Subscribe to my newsletter to get every free book and course in PDF and EPUB format.

Get the downloads

Course contents

  1. Server foundations

    Install Nginx, understand its processes and configuration, and make safe changes.

    1. Install and inspect Nginx
    2. Understand master and worker processes
    3. Read configuration contexts
    4. Test, reload, and roll back
    5. Check your understanding: server foundations
  2. Requests and static files

    Match servers and locations, map URIs to files, and control common responses.

    1. Select a server block
    2. Match location blocks
    3. Serve static files safely
    4. Return redirects and errors
    5. Check your understanding: requests and static files
  3. Reverse proxy applications

    Proxy requests, preserve useful metadata, handle upgrades, and set timeouts deliberately.

    1. Proxy to an application
    2. Forward client request details
    3. Set timeouts and buffering
    4. Proxy WebSockets and streams
    5. Check your understanding: reverse proxy applications
  4. HTTPS and access

    Install certificates, redirect HTTP, choose TLS settings, and protect private paths.

    1. Install a certificate chain
    2. Redirect HTTP to HTTPS
    3. Choose TLS and HSTS policy
    4. Protect private locations
    5. Check your understanding: https and access
  5. Operate and troubleshoot

    Read logs, control traffic, tune buffering and caching, and diagnose production failures.

    1. Read access and error logs
    2. Control rate and connections
    3. Cache deliberately
    4. Diagnose a production request
    5. Check your understanding: operate and troubleshoot