Question

cannot access the site in a browser

I have external DNS and when I change it to point to my droplet and navigate to that page in a browser, I get an error saying that the connection is refused.

I checked the apache error log at /var/log/apache2/error.log and it says:

[Sat Feb 26 21:11:09.582275 2022] [php:warn] [pid 48772] [client 45.146.164.234:61443] PHP Warning: Undefined array key “host” in /var/www/html/wp-includes/canonical.php on line 699

I’m not sure what to make of that… anyone know what the error is or how to figure it out?


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.

Hi @BenRothman,

The error you see seems to be related to your code rather than the error you are seeing in your browser.

With that said, can you confirm you’ve enabled your website via Apache? Additionally, can you post your apache configuration for your Domain?

The last resort test for this is to point your Domain to another folder on your Droplet and create an index.html file with a simple text to see if it’s loading properly. That way you can 100% confirm if the issue is from your Droplet or Website.

Hello there,

The message from the log seems like a warning that should not be the reason for the site not to load. DNS changes can take up some time in order to update which is something to bear in mind.

If the site is still not loading for you, then use any DNS tool to make a DNS lookup and make sure the domain name is resolving from the correct IP address:

https://www.digitalocean.com/community/tools/dns

You can then continue to troubleshoot the issue on the droplet.

Hope that this helps!