How to configure port for Node.js Application in Cpanel? How to configure port for Node.js Application in Cpanel? express express

How to configure port for Node.js Application in Cpanel?


You mush config .htaccess :

RewriteEngine OnRewriteRule ^$ http://127.0.0.1:XXXXX/ [P,L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ http://127.0.0.1:XXXXX/$1 [P,L]

with XXXXX is your port .