Learn Labs
Serving & Proxying

Self-test

Check your understanding

Self-test8 questions

—/8
  1. Why did a mistyped asset path return 200 text/html?

  2. Why was a 404 for a missing asset cached for a year, and what fixed it?

  3. Which forwarded header can a client spoof through $proxy_add_x_forwarded_for, and how do you prevent it?

  4. What three settings does upstream keepalive need?

  5. What does proxy_read_timeout measure exactly?

  6. Why must Nginx be told to forward Upgrade and Connection for WebSockets?

  7. Why do all messages on one WebSocket go to the same backend?

  8. Design question

    Configure a route for server-sent events that stream for minutes. Which buffering and timeout settings change, and why?