How can one forward web traffic to two different servers without using ports in web address?
My current setup is as follows:
external ip: xxx.xxx.xxx.34
port 80 goes to web server1 and port 8080 to server2
What I want to accomplish is that when user types into browser www.mydomain.com browser goes to server1.mydomain.com but when the user types in the browser server2.mydomain.com it will display the web page on the server2.
server2.mydomain.com has an external ip/dns registration. I have added its ip to IP alias in Untangle and made appropriate port forward and firewall rules, but when I type server2.mydomain.com into browser from external network it will go to regular website hosted on server1.
So in a nutshell www.mydomain.com:80 should go to server1.mydomain.com:80
and server2.mydomain.com:80 should direct to server2.mydomain.com:80
From internal network everything is working ok, as it should.
What I'm missing here?