Hi id_viorel
what you asked is 100% possible with an Apache Reverse Proxy configuration for which is done in the virtual host definition.
On the gateway machine you need to create 2 virtual hosts ( I use Ubuntu for gateway) in
Quote:
/etc/apache2/sites-enabled/web1.conf
/etc/apache2/sites-enabled/web2.conf
|
the virtual hosts will be as follows for web1 (I have omitted the log part you can do it)
and same for web2
How ever there is one word of caution.For situations like this you will need to create one more vhost since Apache on Ubuntu reads the vhost definitions in alphabetical order of virthal host file names (yes thats right file names) so create a third virtual host which takes care of unwanted redirections.
Once you understand how to use Reverse Proxy then read
http://mightydreams.blogspot.com/201...host-best.html