Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 04 · DevOps · One machine, one proxy, one bucket · about 21 min to read

Play it as a journeyTutor comes with a plan

nginx as a Reverse Proxy (what it is actually for)

nginx Reverse Proxy
nginx Reverse Proxy · Open board

The board draws one upgrade: an app that only answers on its own ugly port becomes one process that answers on a clean address, with the app’s own door shut to the outside world. This lesson is about why that swap buys you far more than a nicer URL.

Before you start. You need to know that a running program listens on a numbered port (One address, a thousand doors), and that a web address is really just a friendlier name for one. If Getting Traffic In (Services & Ingress) already gave you the phrase “load balancer,” keep it in your pocket: this lesson is the same idea shrunk onto a single box.

Lesson 33 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1999: a name for a wall every busy site was about to hit
  • 2002: Rambler’s specialists drown in slow visitors
  • The fix: one receptionist for a building full of specialists
  • The caller who never hangs up
  • One door, one badge check, and the rest of the job
  • The concurrency mismatch, in numbers
  • What a reverse proxy is for, beyond forwarding
  • proxy_pass and the trailing slash
  • The headers that must be forwarded, and trusted correctly
  • Connection reuse actually requires three directives
  • Timeouts at each hop, and why the same fault gives you 502 or 504
  • Two more that cost an afternoon, and two board corrections
  • Where the reverse proxy is the wrong tool

Terms it explains: C10K problem, reverse proxy, worker, buffering, slowloris, TLS termination, timeout, worker-per-connection, spills to disk, Buffering slow clients, Static file serving, any URI part, replaces, only scheme://host:port, untouched, regex, variable, appends, position zero, leftmost, from the right, not, 502 Bad Gateway, 504 Gateway Timeout, 502, 504, under low traffic, shorter, As an API gateway, right.

Review DevOps