title: NGINX proxy_pass or proxy_redirect
body: <p>Need help on Nginx proxy_pass.</p>
  
  <p>From outside Nginx URL will be hit like this: 
  <a href="http://some-IP:8080/v2/platform/general/activity/plan" rel="noreferrer">http://some-IP:8080/v2/platform/general/activity/plan</a>?.....</p>
  
  <p>my downstream service looks like this:
  <a href="http://another-IP:8080/activity/plan" rel="noreferrer">http://another-IP:8080/activity/plan</a>?...</p>
  
  <p>I want to get rid of </p>
  
  <blockquote>
    <p>/v2/platform/general</p>
  </blockquote>
  
  <p>from original public url and call my downstream service like above.</p>
  
  <p>In Nginx, how do I redirect public access URL to downstream service?</p>
  
  <p>I tried this: </p>
  
  <pre><code>location /v2/platform/general/ {
    rewrite ^/(.*) /$1 break;
    proxy_redirect off;
    proxy_pass http://another-IP:8080;
    proxy_set_header Host $host;
  </code></pre>
  
  <p>But it didn't work, any help appreciated.</p>