Plesk for Linux
kb: technical
Symptoms
-
Next.js application has been installed
-
Trying to load webpage shows "Incomplete response received from application" or "Response received from application"
-
Domain logs include:
CONFIG_TEXT: 3969388/T1 age/Cor/CoreMain.cpp:1146: Checking whether to disconnect long-running connections for process 3996609, application /var/www/vhosts/example.com/httpdocs (production)
Cause
Nginx does not automatically route requests to the Next.js application
Resolution
-
Go to Domains > example.com > Hosting & DNS > Apache & Nginx Settings
-
Disable Proxy mode
-
Add the following in Additional nginx directives
CONFIG_TEXT: location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:3000;
} -
Press Apply
Comments
0 comments
Please sign in to leave a comment.