Page 1 of 1

Hosting NodeJS projects

Posted: Mon Jun 16, 2014 1:09 pm
by beeman
I love the simplicity and inner workings of VestaCP a lot!

One thing that i'm missing is the hosting of NodeJS projects. I'd love to run a NodeJS project (running on port 3000) through the NGINX reverse proxy used in VestaCP.

What would be the best way to do this? Any ideas? I found the templates but I'm not quite sure what to edit.

Re: Hosting NodeJS projects

Posted: Mon Feb 02, 2015 3:24 am
by sangwich
I hope it's not too late but what I did today is edit the ngnix.conf file pertaining to the existing domain that has been created with vestacp. I just changed port number for both proxy_pass and change the root directory because I created another directory inside the public_html folder. If your nodejs app contains on the default root folder then it's not necessary to change it.

After saving the changes, I restarted my server and ran my app and started working right away.

Re: Hosting NodeJS projects

Posted: Thu Sep 24, 2015 5:00 am
by amohan
Hi sangwich,

Possible to help a newbie?

Wanted to know if there a guide that tell you how to install node.js on a vesta panel server? Or perhaps you could give some hints?

Thanks,
amohan

Re: Hosting NodeJS projects

Posted: Thu Sep 24, 2015 5:09 am
by amohan
Okay installed the node.js

now what port number needs to be changed in the conf file?

-amohan