How can I setup a server to run multiple different apps/programs?

November 30, 2017 88 views
Networking Ubuntu 16.04

I just got a droplet and installed Ubuntu 16.04.3 x64, I followed the instructions and got NextCloud installed. Currently I can't view the login, but that's because my work is blocking it --not a big deal.

But I'd like to access NextCloud by going to 'cloud.example.com'. I've registered cloud.example.com on Google Domain to point to my droplet's IPv4 address. I'd as like a main page, 'example.com' which goes to something else, say Django. And then a third, 'blog.example.com', which points to a to-be-determined blog, let's say Wordpress for the time being.

How can I get this setup? I figure Nextcloud will need to go through a port, and then over at my domain control I point cloud.example.com to that port. The blog would get and 'blog.example.com' would point to that.

I assume that installing new programs is as easy as get getting and installing the respective programs. But how do I then point each program to the correct port?

Be the first one to answer this question.