title: Getting 404 with react router app with nginx
body: <p>I have a react frontend app that uses react-router to create different routes. On development server its working fine but when I build the project it gives me 404 while accessing it with different routes directly. Website perfectly opens with <code>xyz.net</code>. And it gives 404 when I try to access it with <code>xyz.net/login</code>.</p>
  
  <p>Here is my nginx conf</p>
  
  <pre><code>server {
  
  listen 80;
  server_name  xyz.net www.xyz.net;
  root /root/frontend/react/build/;
  index index.html;
  
  
  location /api/ {
  
      include proxy_params;
      proxy_pass http://localhost:8000/;
  }
  </code></pre>
  
  <p>}</p>