title: Serve multiple React apps from the same server with Nginx
body: <p>I'm serving multiple react apps from the same server block in Nginx.I'm forwarding these routes from nginx to each react app's index.html, I've added a try_files to each location:</p>
  
  <p>My nginx configuration :</p>
  
  <pre><code>server {
    listen 80;
    location /nest/ {
          alias /Users/harikrishnan/turbolab/nest-ui/build;
          try_files $uri /index.html;
    }
    location  /nest/dataviewer/ {
       alias /Users/harikrishnan/turbolab/dataviewer/dataviewer/build;
       try_files $uri /index.html;
  }
  }
  </code></pre>
  
  <p>The problem is that when I browse to <code>/nest/dataviewer</code>  it redirects to the <code>/nest/</code>. That's obviously not what is expected, since I want to have each location to forward to the <code>index.html</code> of the adequate project.</p>