Domain issue. The website is showing up with IP address bu not with the domain name.

I have a website on django. I have used gunicorn and nginx for deployment. The site is showing up with IP address but with domain name i’m getting a bad request (400). I have already configured the nameservers on godaddy and A, AAAA, CNAME on Digital Ocean.

What is the problem here?

Thank You.


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 alse have to setup your VHOST to get it listening to your domain. Edit the NGINX vhost and add the server_name