How can I setup a server to run multiple different apps/programs?
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, 10.10.10.10:10 and then over at my domain control I point cloud.example.com to that port. The blog would get 10.10.10.10:11 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?