Nginx 502 Bad Gateway

502 Bad Gateway means that the server you’re attempting to access is showing an error due to a problem with another server. 

In this scenario, the server is actually a proxy that receives information from another server.

If you’re getting this error in Nginx, we’ll help you troubleshoot the problem in this guide.