Multiple hostnames on one server?

I have RancherOS 0.4.2 and Rancher 59.1 on my EC2 instance, and I’m having an awful time trying to figure out how to properly allow serval hostnames to different stacks.

So it would be something like this

Stack 1:
gitlab.foobar.com -> gitlab

redis
postgres
gitlab

Stack 2:
drone.foobar.com -> drone

drone
postgres

rancher.foobar.com -> rancher-server

Any idea how I can fix this? Iv’e tried the UI, NGINX, LoadBalancers but I’m having no luck.

Also asked in https://github.com/rancher/rancher/issues/3751

I think that the advanced rooting capabilities is what you are searching for => http://docs.rancher.com/rancher/rancher-ui/applications/stacks/adding-balancers/#advanced-routing-optons
Did you tried that already?