Question

droplet not resolving to domain

Posted December 23, 2017 1.2k 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

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.

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)

Submit an Answer