Hi DO community! I know this question has been asked before many times but do believe I have followed everystep mentioned in answers but nothing works. My website was running very well except when I found out that Multiple image uploads gives 413 request entity too large error and for the sake of solving it I just did the mistake of putting “client_max_body_size 100M;” in nginx.conf. From that time till now my website is not getting open and I am getting:

This site can’t be reached [mydomain] refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED

I removed the line and restart nginx multiple times but same thing is continuing. I followed this: and many others to solve the error but nothing happens. I have checked out error logs , there is nothing exceptional in them and even now they are not updating to show some new error. I have checked nginx syntax , gunicorn status. Everything is up and fine. Only one thing that I found weird after running this command sudo journalctl -u nginx: failed to read pid from file /run/ So I decided to remove this error and followed But still nothing is working out. Do help me out as my running website has just stopped that is causing alot of issue to me.


am also experiencing similar issue, am using angular as the front head and I placed the file in var/www/html/mypolicyfrontend, I av the same setting in gunicorn and Nginx as mahawaqar . though in my case i have my DRF installed in a user /home/jacob. i av scouted the net for 6 days now with no hope… kindly assist … i cant get pas my login (though on development everything is ok) regards

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @mahawaqar9875,

Do you have a firewall like UFW enabled on the Droplet? If so I would recommend checking the status and making sure that ports 80 and 443 are open.

Also what I could suggest here is trying the things mentioned in this answer here on how to troubleshoot common Nginx problems and then sharing the output of each command here so that I could try to advise you further:

Let me know how it goes! Regards, Bobby