Domain is not connecting to droplet.

July 2, 2016 1.3k views
DNS Nginx Ubuntu 16.04

Going to my domain ( brings up:

Unable to connect
Firefox can't establish a connection to the server at

Pinging it on CMD-Promt brings up:
Reply from bytes=32 time=91ms TTL=54

On my GoDaddy domain the hostnames are set to:
I've left them 48 hours GoDaddy has confirmed they've been updated.

I've set @ to go to my droplet IPv4. And my CName * to point to my domain (@)
All set.

Typing in the IP:
Works and takes you to my site using the reverse proxy.
The reverse proxy has the domain set as and is listening on 80 and connecting to the node app on port 8080.

I know this works because works and not only proving the proxy works and it's the domain:

$TTL 1800 IN SOA 1467468106 10800 3600 604800 1800 1800 IN NS 1800 IN NS 1800 IN NS 1800 IN A 1800 IN CNAME

1 Answer

@maydongs - First, make a CNAME record in your DNS for www with value In addition or alternatively, you could also make a catch-all CNAME record of * (that's a star character) to handle all subdomains. Next, you need to modify your nginx server block to have a server_name value with both and, then restart nginx. Good luck.

Have another answer? Share your knowledge.