title: Nginx routing to several RESTful endpoints
body: <p>I would like to use Nginx as the HTTP proxy server.</p>
  
  <p>On the backend, we have 3 different applications written in Java exposing a RESTful API each. Every application has their own prefix on the API.</p>
  
  <p>For instance:</p>
  
  <blockquote>
  <pre><code>APP 1 - URI prefix: /api/admin/**
  APP 2 - URI prefix: /api/customer/**
  APP 3 - URI prefix: /api/support/**
  </code></pre>
  </blockquote>
  
  <p>On the frontend, we have a SPA page making requests to those URI's.</p>
  
  <p>Is there a way to tell Nginx to route the HTTP request depending on the URI prefix?</p>
  
  <p>Thanks in advance!</p>