Hands-on task
Diagnostics: 502 from the proxy
nginx on port 80 works as a reverse proxy, but http://localhost/ returns 502 Bad Gateway. Find the cause and fix it so the proxy returns 200. Don't change the nginx config — fix what it proxies to. You can see the error in the Site tab too — once it's fixed, the backend's response shows up there.
- nginx
- 502 bad gateway
- proxy_pass
- upstream
- diagnostics