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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.