Well, if I'm hosting, say, 20 virtual sites on 20 internal IP addresses then
I guess 127.0.0.1 wouldn't work (they're not name-based, IP-based with SSL)
My problem was when you tried to connect the first time it would display the
main page of apache, and the second time it went off to the second server
and worked fine, then the third time it displayed the apache default page,
and so on (round robin with weight = 1 on both).
Couldn't work out why! If I did a 'lynx http://192.168.1.48' for
example on box 1 and 'lynx http://192.168.1.148' on box 2, they both display
the correct web-site!
++ 26/11/01 21:26 +1100 - horms@xxxxxxxxxxxx:
>
> Quoting Gonzalo Servat <gonzalo@xxxxxxxxxxxx>:
>
> > Hi All
> >
> > Probably a silly question but is it possible to do LVS + NAT + Apache on
> > the same box using round-robin style load balancing? (and of course a mirror
> > of the same box as the other LVS + NAT + Apache box)
>
> This should work just fine. Just set a local IP addresss (e.g. 127.0.0.1)
> as one of the real servers when you set up LVS.
>
> --
> Horms
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>
--
Gonzalo Servat <gonzalo@xxxxxxxxxxxx>
.. "Think positively, act positively, and never leave fingerprints." --
Robert Sneddon
|