title: Mapping local ip address+port to a host name using nginx but no mapping is done
body: <p>I need to map a host name along with a port no to a domain name. Like I want <code>mysite.com</code> to map to <code>127.0.0.1:8084</code>. I installed nginx(to use as reverse proxy server) &amp; added these lines within file <code>/etc/nginx/sites-available/default</code> </p>
  
  <pre><code>server {
      listen mysite.com:80;
      server_name  mysite.com;
      root 127.0.0.1:8084/;
  
      location / {
  
          proxy_set_header X-Forwarded-Host $host;
          proxy_set_header X-Forwarded-Server $host;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_pass http://127.0.0.1:8084/;
      }
  }
  </code></pre>
  
  <p>But there is no impact, no mapping is done even after restarting the ngnix server. </p>