LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Fallback Server

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Fallback Server
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 22 Jul 2004 15:10:17 +0900
On Wed, Jul 21, 2004 at 04:58:54PM +0200, Kjetil Torgrim Homme wrote:
> On Wed, 2004-07-21 at 09:47 +0200, Burian Peter (OI&T V) wrote:
> > It means, if application1 failed, will the URL "sorry_app1.html" appear to
> > the user and the URL "sorry_app2.html" will appear in case the application2
> > failed.
> 
> hmm, not sure what happens when the fallback is 127.0.0.1, if Apache
> will see the original IP address, but Apache should be able to handle
> this using HTTP/1.1 virtual hosts (different root directory based on
> Host: directive).

Yes, Apache should see the original IP address and be able to use
virtual hosts. The HTTP headers should also be intact so you could
use mod_rewrite if you wanted to.

As for directing the traffic to different ports, as was suggested
earlier in this thread, that will not work because LVS can not
do pormapping when traffic is delivered locally. It would
be possible (though not neccessarily easy or desirable) to do
it if the failback server was a different host.

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