Question

ERR_CONNECTION_REFUSED from all browsers except Firefox on Android

Hi All, I am pulling my hair out!

http://134.209.20.183/ returns the test Apache page from all browsers

http://drhelenkelly.com/ is refused a connection from all browsers except Firefox on Android

The domain is registered with Wordpress and the nameservers are successfully updated to digitalocean. This was done 7 days ago and propogation has happened.

I have tried:

  • Pinging IP addresses and URLs from the droplet - all work
  • apachectl -t which gives no syntax problems
  • Various virtual host configurations because I initially had a subfolder in /var/www
  • DESTROYING AND REBUILDING the installation with no subfolder in /var/www
  • Deleting DNS records and recreating the A record
  • Disabling the UFW

Any help would be gratefully appreciated, Dave


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.

Accepted Answer

Hello,

If you access your site directly via HTTP it loads as expected. However sometimes Chrome and other browsers would redirect to HTTPS by default, and as you don’t have an SSL certificate you would get the connection refused error.

To fix that, you can install an SSL certificate by following the steps here:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

That way your website will be accessible via HTTPS as well and you will not get the error.

Hope that this helps!

Best,

Bobby

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.