By camazg
Hi, My website has been running since I deployed it yesterday. I rebooted the server this morning, and now the website won’t load. Im using nginx and gunicorn - i have tested both and the tests were successful.
What reasons are there that the website now wont load, after nothing was changed during the reboot
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
502 Bad Gateway means nginx is unable to communicate to gunicorn.
Make sure that gunicorn is running on the expected port. You can verify it using :
netstat -tulpn
If you find it running and the website still shows 502, try restarting nginx and gunicorn.
Let me know if you have any further questions.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.