-Everything was going great my website was accessible with IP address of the droplet and the domain name too.
-Then I have tried to add the one more domain name for my website(wordpress) on a single droplet and all of sudden my ip address is pointing to that WordPress website Django website was no more associated with my ip address of the droplet. -Then I have reset my droplet to the factory version.
-Then I have started to host my previous django website from scratch and at the Django_welcome_page(where we can see that django is activated) and then I have copied the content of my website to the droplet. -After copying my website content I am getting this (502 bad gateway) error and I am unable to access my website neither with ip address now with domain name.
Can someone please help me?
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!
Hello,
I believe that you need to make sure that the gunicorn service is up and running:
systemctl status gunicorn
If it is not running you should start it with:
systemctl start gunicorn
Also after that make sure that your gunicorn.socket socket exists at:
ls -l /home/django/gunicorn.socket
Let me know how it goes! Regards, Bobby
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.