LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

multiple vips and apache

To: "lvs-users@xxxxxxxxxxxxxxxxxxxxxx" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: multiple vips and apache
From: karkoma <abambala@xxxxxxxxxx>
Date: Mon, 09 Jul 2001 13:29:56 +0200
I've the following config:

        Director: vip1 193.a.b.c, vip2 193.d.e.f, vip3 193.g.h.i
        Real server1: 192.168.3.1, 192.168.3.51, 192.168.3.61
        Real server2: 192.168.3.2, 192.168.3.52, 192.168.3.62
        .............etc

I have configured apache in real servers like this:

<VirtualHost 192.168.3.51>
  ServerName def
  DocumentRoot /home/httpd/def
  ...
</VirtualHost>

<VirtualHost 192.168.3.61>
  ServerName ghi
  DocumentRoot /home/httpd/ghi
  ...
</VirtualHost>

My ldirectord.cf:

....

virtual=193.d.e.f:80
  fallback=127.0.0.1:80
  real=192.168.3.51:80 masq 1
  service=httpd
  scheduler=wlc
  ....
virtual=193.g.h.i:80
  fallback=127.0.0.1:80
  real=192.168.3.61:80 masq 1
  service=httpd
  scheduler=wlc
  ....
I want requests coming from 193.d.e.f be redirected to 192.168.3.51 and
requests from 193.g.h.i to 192.168.3.61 but this doesn't work. What's
wrong?? Requests coming from 193.a.b.c are correctly handled by virtual
host at 192.168.3.1


Any sugestion will be apreciated.
Thanx. Alberto.


<Prev in Thread] Current Thread [Next in Thread>