Report this

What is the reason for this report?

why my domain is not working in nginx, django?

Posted on March 6, 2019

hi

  1. i purchesd new domain like vtuallinoneresources.com in nextraone hosting services .

  2. then i replaced the servername space to ns1,2,3 digital ocean

  3. i checked the “https://www.inmotionhosting.com/support/tools/visual-domain-routing?domain=vtuallinoneresources.com” where my new domain server point to old or new NS

  4. its pointing to new digital ocean NS

5.in my :$ nano /etc/nginx/sites-available/hello i changed ip address to domain name

    listen 80;

    # add here the ip address of your server
    # or a domain pointing to that ip (like example.com or www.example.com)
   #server_name my ip address;
    server_name vtuallinoneresources.com;

    keepalive_timeout 5;
    client_max_body_size 4G;

  1. in django settings.py file added domain name in allowed host like this ALLOWED_HOSTS = [‘127.0.0.1’,‘localhost’,‘68.183.90.158’,‘vtuallinoneresources.com’]

  2. but is not working now with domain name instead of ip address

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.