title: Connecting to website via domain redirects to IP(no guides nor "fixes" helped)
body: <p>I am using GoDaddy domain and connectiong it to django+gunicorn+nginx droplet hosted on DigitalOcean.
  After all tried configs of DO, nginx, etc., I'm still getting the same result.
  When I'm trying to connect via domain, it changes it to IP address and proceeds...
  Last nginx config I stopped on is:</p>
  
  <pre><code>server {
  listen 80;
  server_name example.com www.example.com ip.ip.ip.ip;
  
  location = /favicon.ico { access_log off; log_not_found off; }
  location /static/ {
      root /home/user/webapp;
  }
  
  location /media/ {
      root /home/user/webapp;
  }
  
  location / {
      include proxy_params;
      proxy_pass http://unix:/home/user/webapp/webapp.sock;
  }
  }
  </code></pre>
  
  <p>Removing IP completely from nginx conf results in same behavior but instead of getting Django webpage I'm getting redirected to nginx default webpage and the domain is again changed to IP.</p>