title: NGINX Run multiple application on same port with different route path
body: <p>I have two applications, app1 is developed in reactJS and app2 in angularJS sharing same login session,</p>
  <pre><code> - Application 1
  http://application-1:1234/
   - APplication 2
  http://application-2:2345/
  </code></pre>
  <p>My needs is to have a seemless navigation between both apps, as they share the same login credentials.</p>
  <p>I have created NGINX reverse proxy configuration,</p>
  <pre><code>server {
      listen 8080;
      server_name http://global-ip:8080;
      location / {
          proxy_pass http://application-1:1234;
          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;
       }
      location /application-2 {
          proxy_pass http://application-2:2345;
          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>As the above configuration is working for only, First default root path. The other /application-2 is not able to redirect to specified path.</p>
  <p>Any help will be appreciated.</p>
  <p>Thanks
  Praveen T</p>