title: How can i get domain-name instead of ip-address using nginx in ubuntu?
body: <p>I complete the configuration in nginx as well as i connect it via this link</p>
  
  <p><strong><a href="http://1.2.3.4/MyProject/" rel="nofollow noreferrer">http://1.2.3.4/MyProject/</a></strong></p>
  
  <p>where my ip address assign in nginx 1.2.3.4</p>
  
  <p>and my nginx configuration</p>
  
  <pre><code>server_name 1.2.3.4;
  listen 80;
  </code></pre>
  
  <p>but when i give domain name like </p>
  
  <pre><code>server name account.com;
  listen 80;
  </code></pre>
  
  <p>but when i open that page from browser like:-    <a href="http://account.come" rel="nofollow noreferrer">http://account.come</a> it will redirect at <a href="http://:1.2.3.4/myproject" rel="nofollow noreferrer">http://:1.2.3.4/myproject</a></p>
  
  <p>so how can i hide my ip-address and see my domain name?</p>
  
  <p>Thankyou so much.</p>