jj wrote:
Hi, I searched all over the internet, but cant find this in any forum, so hopefully someone can help. I dont even know if iptables can help, but hopefully it will. I have only dedicated IP address, and I have 3 hosts (same for physical or virtual hosts, I guess) and what I would like is: to have each host have its own LAMP hosting its own domains, but from the outside world, everyone should only see www.whatever.tld, without the need to add port numbers, etc can this be done with some form of iptables, apache redirects (via a control panel like ispconfig, or similar)?
Use apache with mod_proxy. This cannot be done with iptables, the hostname is not in the first packet (the SYN) that iptables sees, after that it is to late to do anything about it as you cannot suddenly rejank the connection to another host.
can it be done, or must I have multiple dedicated IP's?
For https you will need dedicated ips, for http use mod_proxy. HTH, M4