This Site Can't Be Reached. Connection Refused. Can access via IP, but not domain.

Posted February 15, 2021 631 views

I pointed a new domain over to my Digital Ocean server for my Wordpress site yesterday morning. After the DNS propogated, everything was working fine. It worked for about 24 hours, but now I am getting a “This site can’t be reached. refused to connect.” error. I have pinged the IP address and it works, and I have done nslookup, and everything seems fine. I checked my domain ( on and everything is fine except I get a red x for CNAME. I deleted and re-added my CNAME record which was just for the www version of the address, but I’m still getting an error, and my site still won’t load. However, if I go to an old page on the site, using the IP address, it will load (i.e. Please advise what I need to do to get the main site to load:

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.

Submit an Answer
1 answer

Hello @holepunchdesign

We see that the site is loading with the IP address, but not the domain. It could be because the web server configuration might be having issues. Please refer to our Community article for detailed instructions

Hope this helps!


by Lisa Tagliaferri
This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting. For a…