Question

Domain Name Issue

I’m trying to point my domain name to my Droplet. Please observe the screenshots of me trying to set up. Notice any issues? Anything pointing me in the right direction would be helpful. Thanks.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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 @eugenetedkim,

I can see your domain is properly pointed to your DNS and it’s actually pinging from it. It seems the issue is you’ve closed port 80 and 443 and thus getting this error message - connection refused.

Firstly, in order for the ports to be opened, something would need to listen to them. On port 80 and 443 usually what listens to them are services like Apache/Nginx. They are used to process the requests on the server and server the websites on it. Having said that, please make sure you have either Apache or Nginx installed and configured.

If you are unsure how, you can check the following articles:

Install and configure Apache

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04

Install and configure Nginx

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04

Firewall

  • If you are using UFW, you can execute
sudo ufw allow 80
sudo ufw allow 443
  • If you are using only IPtables, you can execute
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT

Regards, KDSys

This comment has been deleted