LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Looking for httpd conf advice from users of ultramonkey (lvs-nat) an

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Looking for httpd conf advice from users of ultramonkey (lvs-nat) and firewall marks.
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 21 May 2003 18:19:05 +0900
On Thu, May 15, 2003 at 02:26:30PM -0600, Chip Upsal wrote:
> 
> I am using ultramonkey 2.0.1 with firewall marks.
> I am loadbalancing two servers with several  ip-virtual sites.
> 
> On the virtual host directive i have been using real ipaddress on the lvs
> subnet for the real servers:
> 
> Server1
> 
> #Site 1
> <VirtualHost 192.168.2.19:80>
[snip]
> <VirtualHost 192.168.2.19:443>
[snip]
> 
> #Site 2
> <VirtualHost 192.168.2.20:80>
[snip]
> <VirtualHost 192.168.2.19:443>
[snip]
> On the second server:
> 
> #Site 1
> <VirtualHost 192.168.2.19:80>
[snip]
> <VirtualHost 192.168.2.19:443>
[snip]
> 
> #Site 2
> <VirtualHost 192.168.2.120:80>
[snip]
> <VirtualHost 192.168.2.119:443>
[snip]
> 
> The ldirectord.cf file looks like:
> 
> # site1
> virtual=1
>         real=192.168.2.19:0 masq
>         real=192.168.2.119:0 masq
[snip]
> # Site2
> virtual=2
>         real=192.168.2.20:0 masq
>         real=192.168.2.120:0 masq
[snip]
> 
> Is this a valid setup?


I take it that Apache is using name based virtuals.

It looks kind of weird to me.

In the ldirectord.cf you have two sites. Each with two real servers.
I assume that they conrespond to the same two machines so.

Site 1 -> 192.168.2.19  (Real Server 1)
          192.168.2.119 (Real Server 2)

and

Site 2 -> 192.168.2.20  (Real Server 1)
          192.168.2.120 (Real Server 2)

This given, shouldn't the Apache setup be something along the lines of:

Server 1
#Site 1
<VirtualHost 192.168.2.19:80>
<VirtualHost 192.168.2.19:443>
#Site 2
<VirtualHost 192.168.2.20:80>
<VirtualHost 192.168.2.20:443>

Server 2
#Site 1
<VirtualHost 192.168.2.119:80>
<VirtualHost 192.168.2.119:443>
#Site 2
<VirtualHost 192.168.2.120:80>
<VirtualHost 192.168.2.120:443>

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