502 Bad Gateway
Hey
I have followed this tutorial https://github.com/satssehgal/URLShortnerDjango- which is how to deploy Django on linode. I followed each single line but I am getting 502 Bad Gateway
nginx/1.18.0 (Ubuntu). any helps please
Thanks
1 Reply
watrick
Linode Staff
Generally, a 502 message like that means that Nginx is running, but it can't connect to a service or other thing that it needs to serve the requested content.
This Community Questions answer explains what is happening pretty well:
https://www.linode.com/community/questions/18097/how-to-resolve-http11-502-bad-gateway#answer-68594
As for fixing the problem, I would check out the answer here:
https://www.linode.com/community/questions/18494/how-can-i-fix-a-502-bad-gateway#answer-69422