title: How to remove first part of route in nginx?
body: <p>I have nginx configured on server like below</p>
  <pre><code>localhost ~ elastic{
  proxy_pass http://localhost:5000;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection 'upgrade';
  proxy_set_header Host $host;
  proxy_cache_bypass $http_upgrade;
  }
  </code></pre>
  <p>With this I go on <code>http://nginx_host/elastic/something</code> I reach <code>http://localhost:5000/elastic/something</code>.</p>
  <p>But I want to change it such that by going on <code>http://nginx_host/elastic/something</code> I reach <code>http://localhost:5000/something</code>.</p>
  <p>I have many other services running on this server using same configuration as above, therefore I cannot use a generic method to remove the first part of the path, it needs to be specifically to remove elastic from start. How can I do this?</p>