Question

droplet not resolving to domain

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

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.

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)