Question: I have two servers running ubuntu server with both on the same physical host virtual server but are completely separate virtual machines (ubuntu servers). One is hosting my WordPress site and the other hosting my other site. I’m using apache2 on bother servers on ubuntu server 16.04 with Webmin for GUI access as I’m new to Linux and still learning.
Currently, when I enter the domain name for server two redirects to server one even though I have specified on the virtual host on each server to use port 80 and 8080 respectively I can only reach domain name 2 if I enter
www.domaname2.co.uk:8080 if I don’t use this then it redirects to
I think I have to edit the apache config file on server 1 to dismiss port 8080 but not sure how to do this or if this is the correct solution. I’m basically trying to run two websites on separate servers using port 80 for website 1 and port 8080 for website 2.
Infrastructure 1x Host Server Hyper-V 2016 core (just for virtualisation). 2x Ubuntu Servers, Lamp on both and one is hosting WordPress site and other Apache2 only.
Both are virtual machines, different IP Address, Different Server Names, Different servers.
Solutions: Website\ webserver 1 use port 80 and website\webserver 2 use port 8080 both independent of each other or could I use a subdomain on server one (I have no issues using the domain name e.g. stream.domainame1.co.uk for the second site and keep www.domainname1.co.uk for the main site if this is possible?