DE EN IT

~/errors / nginx

nginx: upstream prematurely closed connection while reading response header from upstream

nginx sent the request to the backend, but the backend closed the connection before it sent a response. The user sees 502 Bad Gateway. The backend crashed, was killed, restarted, or does not speak the protocol nginx uses.

New articles by e-mail

One e-mail per new article. No tracking, unsubscribe any time. As a thank-you after confirming: my “Server operations & patching” checklist (PDF).