Keith Rowland wrote:
> I've many hours going over the info on the website and read
> throghh the last couple months list archives, and can't find the
> answer to one question.
>
> Can I use Virtual Server to host multiple domains on the
> cluster? Can VS be setup to respond to multiple 10-20 different
> IP addresses and use the clusters to reposnd to any one of them
> with the proper web directory.
>
> All the example setup scripts only seem to show it server ONE
> virtual IP address. Can it be extended to support eth0:1 eth0:2
> eth0:3 etc.
If I understand the question correctly, then the answer is yes :-)
I have one system that has two IP addresses and responds to two names:
foo.mydomain.com A.B.C.foo eth1
bar.mydomain.com A.B.C.bar eth1:0
On that system (kernel 2.0.36 BTW) I have LVS setup as:
ippfvsadm -A -t A.B.C.foo:80 -R 192.168.42.50:80
ippfvsadm -A -t A.B.C.bar:80 -R 192.168.42.100:80
To make matters even more confusing, 192.168.42.(50|100) are actually one
system where eth0 is 192.168.42.100 and eth0:0 is 192.168.42.50. We'll call
that 'node'.
Apache on 'node' is setup to serve foo.mydomain.com on ...100 and
bar.mydomain.com on ...50.
It took me a while to sort it out but it all works quite nicely. I can
easily move bar.mydomain.com to another node within the cluster by simply
changing the ippfvsadm setup on the externally addressable node.
Later,
J
|