title: redirect all the requests to api server with nginx
body: <p>I'm using Nginx as a reverse proxy to redirect api request to one my server. Unfortunately it is not working properly</p>
  
  <p>what I'm trying to achieve is to proxy all requests like <code>/api/v1/*</code> to <code>http://my-api-server/api/v1/*</code></p>
  
  <p>here is the rule I have written</p>
  
  <pre><code>location /api/v1/ {
     proxy_pass http://my-api-server/api/v1/
  }
  </code></pre>
  
  <p>but it doesn't work. any idea?</p>