title: Nginx redirect to domain name instead of IP address
body: <p>I have a domain name from godaddy consider it as a www.example.com, and server from linode (Ubuntu 16.04 LTS). I have a static web page which is served through nginx by listening port 9000, consider it as 0.0.0.0:9000.</p>
  
  <pre><code>server {
      root /home/webapps/mysite;
      index index.html index.htm;
  
      listen 0.0.0.0:9000;
      server_name example.com www.example.com;
  
      location / {
          try_files $uri $uri/ /index.html;
      }
  }
  </code></pre>
  
  <p>I added the domain name in the linode DNS manager and also added in the godaddy Domain Forward Setting.</p>
  
  <p>In the browser if  I use 0.0.0.0:9000 my site page opens correctly and if I use with domain name <strong>example.com</strong> in the browser the domain name is changed to ip address and my page opens, why it is happening so, why my domain name is changing back to IP address, did I miss anything?</p>