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

Posted January 30, 2017 3.4k views
NginxDjangoUbuntu 16.04

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.

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.

Submit an Answer
1 answer

You alse have to setup your VHOST to get it listening to your domain. Edit the NGINX vhost and add the server_name