Plesk

Next JS application fails to load: Checking whether to disconnect long-running connections for process

Symptoms

Cause

Nginx does not automatically route requests to the Next.js application

Resolution

  1. Log into Plesk

  2. Go to Domains > example.com > Hosting & DNS > Apache & Nginx Settings

  3. Disable Proxy mode

  4. Add the following in Additional nginx directives

    location / {
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://127.0.0.1:3000;
    }

  5. Press Apply

Exit mobile version