title: Nuxt.js is not working when I change Nginx location
body: <h2>Environment</h2>
  
  <ul>
  <li>Ubuntu 18.04.2 LTS</li>
  <li>nginx version: nginx/1.14.0 (Ubuntu)</li>
  <li>@nuxt/cli v2.4.5</li>
  </ul>
  
  <h2>Issue</h2>
  
  <p>I'm trying to deploy nuxt.js (SSR mode) on AWS using ninx reverse proxy feature.</p>
  
  <p>I configure <code>/etc/nginx/sites-available/hoge.com</code> file as below,<br>
  same as Official FAQ: <a href="https://nuxtjs.org/faq/nginx-proxy/" rel="nofollow noreferrer">https://nuxtjs.org/faq/nginx-proxy/</a></p>
  
  <pre><code>map $sent_http_content_type $expires {
      "text/html"                 epoch;
      "text/html; charset=utf-8"  epoch;
      default                     off;
  }
  
  server {
      listen          80;
  
      gzip            on;
      gzip_types      text/plain application/xml text/css application/javascript;
      gzip_min_length 1000;
  
      location / {
          expires $expires;
  
          proxy_redirect                      off;
          proxy_set_header Host               $host;
          proxy_set_header X-Real-IP          $remote_addr;
          proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-Proto  $scheme;
          proxy_read_timeout          1m;
          proxy_connect_timeout       1m;
          proxy_pass                          http://127.0.0.1:3000;
      }
  }
  </code></pre>
  
  <p>If I access to <a href="http://hoge.com" rel="nofollow noreferrer">http://hoge.com</a>, it works.<br>
  BUT after I change location path below, nuxt.js cannnot render itself.</p>
  
  <p>When rewrite <code>hoge.com</code> file ...</p>
  
  <pre><code>server {
      ...
  
  -    location / {
  +    location /fuga/ {
        ...
      }
  }
  </code></pre>
  
  <p>and then access <a href="http://hoge.com/fuga/" rel="nofollow noreferrer">http://hoge.com/fuga/</a>, It's not working</p>
  
  <p><a href="https://i.stack.imgur.com/YIKmX.png" rel="nofollow noreferrer">Error Scrreen</a></p>
  
  <p>console.log</p>
  
  <pre><code>GET http://hoge.com/_nuxt/a7cb158397e68912ff29.js net::ERR_ABORTED 404 (Not Found)
  (index):569 GET http://hoge.com/_nuxt/img/7f93e7b.png 404 (Not Found)
  (index):567 GET http://hoge.com/_nuxt/img/37def1e.png 404 (Not Found)
  6(index):569 GET http://hoge.com/_nuxt/img/d9ced4d.png 404 (Not Found)
  (index):1 Unchecked runtime.lastError: The message port closed before a response was received.
  favicon.ico:1 GET http://hoge.com/favicon.ico 404 (Not Found)
  </code></pre>
  
  <p>It seems that resource file path refers still previous URL.<br>
  But I have no idea how to fix it.</p>