title: 404 not found, nginx looking for the default path 'etc/nginx/html/index.html' on NextJS application
body: <p>I'm currently in need of some help with this 404 issue I've been stuck on for days now. My system is running CentOS7 (CPanel, VPS) and it uses engintron for the nginx reverse proxy and pm2 to keep my next.js application running.</p>
  <p>default.conf</p>
  <pre><code>server {
      #listen 80 default_server;
      listen 80;
      server_name my.domain.name domain.name;
  
      location / {
          # reverse proxy for next server
          proxy_pass http://127.0.0.1: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;
      }
      
      location /_next/static/ {
          alias path/to/nextjs/static/folder;
          expires 365d;
          access_log off;
      }
  
      # deny all; # DO NOT REMOVE OR CHANGE THIS LINE - Used when Engintron is disabled to block Nginx from becoming an open proxy
  
      # Set the port for HTTP proxying
      set $PROXY_TO_PORT 8080;
  
      include common_http.conf;
  
  }
  </code></pre>
  <p>All the other files I haven't touched, so it's safe to rule them out as they're the default ones that come with engintron.</p>
  <p>Connecting to my.domain.name, gives me this error in the console.</p>
  <pre><code>&quot;/etc/nginx/html/index.html&quot; is not found (2: No such file or directory), client: ::ffff:my.ip.address, server: my.domain.name, request: &quot;GET / HTTP/2.0&quot;, host: &quot;my.domain.name&quot;
  </code></pre>
  <p>My best guess on why this problem occurs is because my domain/server can't receive the files or doesn't have permission through the proxy at all as getting the data at 127.0.0.1:3000 via <code>curl http://127.0.0.1/3000</code> returns my site's code in full.</p>
  <p>Any ideas on what could be causing this? Have an amazing rest of your day :)</p>