Hello!
Right now I have a firewall (iptables, Apache, Squid, DNS installed) and a application server behind the firewall.
Incoming traffic on port 443 (HTTPS) of the firewall is redirected to the app. server by iptables. So basically, neither Apache nor other application on the firewall is seeing HTTPS traffic. There is some web content that I serve directly from the firewall -- it reaches Apache by thrugh 80.
Now I'd like to add some extra servers and install on them other web services.
How can configure the firewall computer to route incoming traffic based on domain names to the required hosts?
What are the common practices, technologies, and tools?
In current setup all domains that I own will go to the same server, regardless of their name, if they come through port 443. So I want for example foo.com go to server1 and bar.com to be served by server2; regardless of the port.
Thank you very much!