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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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