Question

Website Server Down 521

Connected Tutorial
This question is a follow-up to this tutorial:

After following the tutorial here, and successfully installing the origin certificate from cloudflare on my server, I got the 521 Error (web server is down). I tried accessing via droplet IP but I get ERR_CONNECTION_REFUSED. I noticed this starts immediately after adding the Ngnix configuration. When I test for syntax errors in any of the Nginx configuration files, I find no problems.


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.

Connection refused error, might be issue with http ports

if you have locally installed SSL Certificate with Nginx, you might need to add that to Cloudflare and change the SSL settings in cloudflare.

Also make sure ports are open on the server 80/443

netstat -tulpn | grep LISTEN

Hi @ffadmin,

Can you please provide us with your Nginx configuration so that we’ll be able to check if there are any issues inside of it?

Additionally, if you turn of Cloudflare, does the error still persists?

Another thing, I would like you to check and let us know what it says inside, is your Nginx error.log. Turn on CloudFlare, add your Nginx configuration, once the error on your website appears, SSH to your droplet and type in:

tail -f /var/log/nginx/error.log

Then reload your website again and you should be able to see the error in your terminal.