Hello this is my scenario:
DMZ has two servers the www hosted at internal IP 10.10.1.5 and mail hosted at 10.10.1.10.
I would like to be able to be forwarder to the proper server when from Internet I go to www.example.com
and mail.example.com
Both servers are behind one firewall which has one public IP configured and I cannot add another IP. This is easy to do when internal destination ports are different (Port forwarding/ Destination NAT) however in my case both targeted ports are the same on both servers (80 and 443). Is there a way to do NAT forwarding based on the requested sub domain? I am aware of apache reverse proxing but I was wondering if there is a different way of doing this.
I hope you will be able to understand my scenario and help me with a solution.