title: Serving index page under / and react application under /admin
body: <p>I am trying to serve a static index page under / in my domain, and my react application under /admin using nginx.</p>
  <p>Here is my config</p>
  <pre><code>server {
    server_name             test.app;
    
  location / {
    root /home/user/static;
    index index.html;
    }
  
  location /admin {
    root /home/user/react-app/build;
    index index.html;
    proxy_pass            http://localhost:3000;
  }
  
  location /static/ {
    alias /home/user/react-app/build/static;
    autoindex off;
  }
    
  }
  </code></pre>
  <p>I tried to change homepage to '/admin' and proxy to 'http://localhost:3000' in package.config, but with no result. I tried many solution actually but with no luck.</p>
  <p>The best I got that a react page working but saying that  'You need to enable JavaScript to run this app.'</p>
  <p>Best</p>