I’ve been trying to set up a WordPress site using these tutorials: How To Set Up a Host Name Initial Server Setup How to Install LAMP stack How to Set Up Apache Virtual Hosts
I’ve completed each tutorial without any error messages and I’ve restarted the process on multiple droplets, but every time I enter my domain Firefox displays “Unable to connect”. I’ve added the proper exceptions in UFW (allowing traffic on ports 80 and 443, restarting Apache after each change). My ports.conf file confirms ports 80 and 443 are being listened to as well.
It might also be worth noting that earlier, before this problem arose, I had the virtual host working, had the site secured via Let’s Encrypt, and had WordPress installed. After some frustration in trying to get to the WordPress admin page, I ended up starting from scratch.
Any help is appreciated.
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.
apache2.conf:
domain.org.conf:
Thanks for the reply!
Firewall status:
lsof:
dig NS:
dig A:
dig CNAME:
Hi @tylerferguson
Let’s double check the firewall again, run this:
And which services are being listened to currently, run this:
But my main guess would be that there’s something wrong with your domain DNS. Can you run the following three commands: