Redirected to IP when visiting domain, using Digitalocean Django One-Click installer


I’ve made no changes to the Nginx and Gunicorn setup on my one-click install image. Having bought a domain and used the Digitalocean DNS panel to point to the server’s IP, the website I smashed together is viewable, but the URL bar will only report the IP, not the domain name. Visiting the domain name redirects to the IP.

Is this a setting I’ve missed on the DNS configuration, or more likely a problem with the Nginx setup? Any advice appreciated!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi Keith!

I can’t reproduce that here. Could you share your DNS configuration? It might help us get to the bottom of this. Did you make and changes to the Nginx setup?