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?
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!
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.