title: How do I configure my Nginx server to work with a React app in a subfolder?
body: <p>I am trying to deploy a React application in a subfolder on my Nginx server.</p>
  
  <p>The location of this React app is structured like: www.example.com/reactApp.</p>
  
  <p>I tried to set up my current nginx.conf like so:</p>
  
  <pre><code>server {
      ..other configs..
  
      location /reactApp {
          root /var/www;
          index reactApp/index.html;
          try_files $uri $uri/ /index.html;
      }  
  
      ..other configs..
  }
  </code></pre>
  
  <p>This has not worked. What do I need to change to fix my subfolder routing?</p>