title: All routes return 404 when deploying on server laravel+nuxt+nginx
body: <p>Im trying to upload <strong>both</strong> Laravel 6.2 as a backend And Nuxt 2.11 as frontend (universal mode) into a server but after  upload every routes returns laravel 404, Im am also using nginx reverse proxy (production mode)</p>
  
  <p>Using this laravel-nuxt package <a href="https://github.com/cretueusebiu/laravel-nuxt" rel="nofollow noreferrer">https://github.com/cretueusebiu/laravel-nuxt</a></p>
  
  <p><strong>Upload Steps</strong></p>
  
  <p>1- upload backend files and folders ( app,bootstrap,client,config,database,routes,storage,vendor,package.json and lock,composer.json and lock)</p>
  
  <p>2-upload frontend files and folders(.nuxt, and everything insdie my client folder)</p>
  
  <p>3-In my server Ive added a new line at the end of my nginx.conf  <code>include /etc/nginx/sites-enabled/*.conf;</code></p>
  
  <p>4- then in /etc/nginx/sites-enabled I have default.conf with the following content</p>
  
  <pre><code>server {
    # server on port 80 (default http port)
    listen 80;
    server_name rabter.com;
  
    # proxy for frontend
    location / {
      # nuxt server url
      proxy_pass http://localhost:3000;
      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;
    }
  
    # proxy for api
    location /api/* {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_set_header X-NginX-Proxy true;
      # laravel server url
      proxy_pass http://localhost:8000;
      proxy_redirect off;
    }
  }
  </code></pre>
  
  <p>Enable my Server Blocks and Restart Nginx
  ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/</p>
  
  <p>5- Ill setup pm2 server so I run pm2 start Laravel-nuxt to start listening to port 3000 ( lunching nuxt)</p>
  
  <p>At this point I access my site which returns 404 on all routes no exception
  I also came across this <a href="https://github.com/iliyaZelenko/laravel-nuxt/issues/1#issuecomment-491484474" rel="nofollow noreferrer">https://github.com/iliyaZelenko/laravel-nuxt/issues/1#issuecomment-491484474</a>
  which I think it essentially what I want to do even tried the nginx code but didnt work</p>
  
  <p>I have 0 routes in my web.php and all the routes are in api.php.Also this project works fine on localhost both dev and prod mode but when I move to the server its all 404.</p>