On 2004-11-24, Eric <(E-Mail Removed)> wrote:
> I would like that someone accessing the URL:
> web1.myserver.com see the first server (on 192.168.2.1)
> web2.myserver.com see the second server (on 192.168.2.5)
You need Name-Based Virtual Host and mod_proxy working togheter.
In a pinch:
NameVirtualHost *
<VitualHost *>
ServerName web1.myserver.com
ProxyVia off
ProxyPass /
http://192.168.2.1/
ProxypassReverse /
http://192.168.2.1/
</VirtualHost>
<VitualHost *>
ServerName web2.myserver.com
ProxyVia off
ProxyPass /
http://192.168.2.5/
ProxypassReverse /
http://192.168.2.5/
</VirtualHost>
See the docs about mod_proxy.
Davide
--
Windows NT -- it'll drive you buggy!
-- Gareth Barnard