LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Host headers & LVS-NAT

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Host headers & LVS-NAT
From: "Francois JEANMOUGIN" <Francois.JEANMOUGIN@xxxxxxxxxxxxxxxxx>
Date: Fri, 20 Feb 2004 09:40:15 +0100

Serhan Sevim :


> In short,I don't think LVS-NAT is able to handle host header names.
> Looks like it only cares about ip's.. 

Well, it works for me :). So, LVS only rewrite the header of the TCP packet to 
route it to the chosen realserver. The Host: HTTP header is in the DATA part of 
the TCP/IP packet, so, everything should work fine. I have several tomcat 
instances, with more than 40 virtual host on each IP along with apache 1.3 and 
Apache 2.0 webservers also with several virtual hosts.

If you use LVS-NAT, be sure that your NameVirtualHost directive binds to the 
NATed IP (not to the public IP). I feel this is your problem.

François.

<Prev in Thread] Current Thread [Next in Thread>
  • RE: Host headers & LVS-NAT, Francois JEANMOUGIN <=