ERR_CONNECTION_REFUSED from all browsers except Firefox on Android

Hi All, I am pulling my hair out! returns the test Apache page from all browsers 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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 17, 2022
Accepted Answer


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:

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

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel