Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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/
 
PREVIOUS NEXT
Tagged: #Why #node #creating #multiple #server #cpanel
ADD COMMENT
Topic
Name
6+6 =