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

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct