droplet not resolving to domain

December 23, 2017 795 views
Deployment Ubuntu 16.04

So I spun up a new 1 click django droplet and changed nothing other than adding dns records as below.

nginx -t is successful.
service Nginx restart is good.
ip address 104.131.17.17 delivers django default page.
All good so far,
But then:
fourmothersfarm.com gives: bad gateway,

Really lost can you help ?

DNS records
Type Hostname Value TTL (seconds)

A fourmothersfarm.comCopy directs to 104.131.17.17Copy 3600 Copy More
A www.fourmothersfarm.comCopy directs to 104.131.17.17Copy 3600 Copy More
NS fourmothersfarm.comCopy directs to ns3.digitalocean.com.Copy 1800 Copy More
NS fourmothersfarm.comCopy directs to ns1.digitalocean.com.Copy 1800 Copy More
NS fourmothersfarm.comCopy directs to ns2.digitalocean.com.Copy 1800 Copy More

1 Answer

You must need charge this file(it maybe is nginx/sites-enbled/default) in here add you domain.E.g. such

servername xxxx.xxx

and also,you maybe need check blow settings.

1.nginx listen servername / ip address. (none is best)

Have another answer? Share your knowledge.