I have a host machine running Ubuntu Server 14 with quiet a few guest VMs also running Ubuntu Server 14.
I have two of those VMs running web servers. Port 80 is forwarded to the machine with the standard site (controlpanel.mysite.com) and I have another VM running a site that requires 443 (cloud.mydomain.com). 443 is setup in the router to forward to the VM and redirect is enabled on the machine. What I would like if possible, is to have port 80 redirected to that machine IF it matches the name that is incoming. When people put in http://cloud.mydomain.com they are taken to port 80 (controlpanel.mysite.com) which isn't the site I want them to view. I want it to go right to cloud.mydomain.com.
I've tried following the example in this site https://httpd.apache.org/docs/trunk/vhosts/examples.html with no luck. Any ideas?