Serving & Proxying
Self-test
Check your understanding
Self-test8 questions
—/8
Why did a mistyped asset path return 200 text/html?
Why was a 404 for a missing asset cached for a year, and what fixed it?
Which forwarded header can a client spoof through $proxy_add_x_forwarded_for, and how do you prevent it?
What three settings does upstream keepalive need?
What does proxy_read_timeout measure exactly?
Why must Nginx be told to forward Upgrade and Connection for WebSockets?
Why do all messages on one WebSocket go to the same backend?
- Design question
Configure a route for server-sent events that stream for minutes. Which buffering and timeout settings change, and why?