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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 17, 2022
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

Try DigitalOcean for free

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

Sign up

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