Required ports tfor Nodejs App
I have my WHM server, I wanted to host nodejs application in my cpanel.
I have my main application with frontend at example.com. There I have one contact form at example.com/contact. When I entered some values into it and submit it shows "Error Submitting form ". Thing is I have my backend hosted at server.example.com. backend server is running fine it shows "server is running" message well.
but when I try deploying the same code in another cpanel which I bought from some hosting provider. It works.
I highly doubt that there is something that I am missing out but what it is ?
Do I need to enable any port for proper communication in between?
For debugging the issue, I Have enable port 3000 and 3001 in my firewall. But still error is same.
Note: I have one login page at example.com/login. Neither the login is working.
-
Hey there! Since each application will be given a unique port number, yes, you should have those ports or that range opened in your server's firewall.
0 -
cPRex what may be the reason I am not able to host any of the nodejs application backend in our cpanel?
Please can you point out the cause? Since we are web hosting provider too so we may have wide ranges of client who may need to host nodejs,python,php or any other application in cpanel..
What ports or range of ports should I enabled in whm server to make it work?
The same codebase is working absolutely fine in other hosting provider's cpanel. I think I am missing out something at my end.0 -
It's hard to say - our support for NodeJS is limited to getting a test application up and running so it would likely be best to create a ticket so this issue can be investigated directly on the server.
0
Please sign in to leave a comment.
Comments
3 comments