LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Problem with HTTP_HOST - do I need L7 switching?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Problem with HTTP_HOST - do I need L7 switching?
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 20:23:36 +0900
On Thu, Sep 25, 2003 at 06:42:00AM -0400, Joseph Mack wrote:
> Horms wrote:
> > 
> >
> > > What appears to be happening is that the client hits the VIP (on the 
> > > active
> > > director), and the director passes the hit through to the appropriate
> > > realserver with, apparently, an HTTP Host: header of the VIP. Port 80
> > > apache on the realserver sees this Host: header, and as a result, the
> > > RewriteRules would appear to redirect the hit to port 8008 on the VIP
> 
> > Hi Guy,
> > 
> > I suspect that your analysis of the behaviour is correct.
> 
> Apparently Horms understands the problem, but I don't.
> 
> If the rewriting sends the packet to VIP:8008 when the application is 
> running on a single server (ie non-LVS setup) and something is listening
> for these packets, then why doesn't the realserver in the LVS situation
> have something listening on VIP:8008?

Joe, I think that Guy is talking about what is inside the packets.
Inside the data section, not the IP headers.  His application is
examining that expecting the RIP to have been changed to the VIP.

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