how can i host two different sites/nodejs webapps in one droplet?

Posted August 5, 2017 1.5k views
Node.jsUbuntu 16.04

hey i want to buy a droplet and host other peoples apps that i make in nodejs in my server, how do i do that?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

By using a proxy / frontend webserver with vhosts like Apache or Nginx.

  • i just launched a website usin nginx, is under the /usr/share/nginx/ directory in a folder call myapp, how do i go about deployin another website? make another folder in the same directory /usr/share/nginx/ say myotherapp cd in to it an git clone my other project into it? ?