Answers for "Why is node creating multiple server in cpanel"

0

Why is node creating multiple server in cpanel

The issue is the .htaccess in the url directory.
you need to adjust the .htaccess file to access the exact server and port
E.G (sample .htaccess file code)
DirectoryIndex disabled
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:XXXXX/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:XXXXX/$1 [P,L]

Now, replace XXXXX with the port your Node.js application is working on.


For more information :
https://www.namecheap.com/support/knowledgebase/article.aspx/10202/48/how-to-install-nodejs-on-a-vps-or-a-dedicated-server/
Posted by: Guest on April-29-2022

Code answers related to "Why is node creating multiple server in cpanel"

Code answers related to "Javascript"

Browse Popular Code Answers by Language