[Zope] management interface with VHM on cluster?

Jack Coates jack@monkeynoodle.org
06 Nov 2002 09:54:05 -0800


On Tue, 2002-11-05 at 23:36, Philippe Jadin wrote:
> Jack Coates wrote:
> 
> >Hi,
> >
> >I have two Linux machines, both running Zope at 8080 and Apache at 80
> >with ProxyPass redirects to Zope. MachineA runs four virtual hosts
> >behind a single IP. A nightly rsync copies the entire zope tree from
> >MachineA to MachineB. Both machines use VHM/SiteRoot to return
> >www.hostname.tld, and one of the virtual sites is load-balanced with
> >round-robin DNS of the www record. I'd like to eventually balance all
> >the domains.
> >  
> >
> You could disable loadbalancing for /manage urls (you'd have to change 
> apache rewrite rules a bit - providing you use apache for round-robin).
> 

By the time Apache gets it, the DNS decision has already been made:
    <IfModule mod_proxy.c>
        # Zope-related statements
        ProxyPass / http://192.168.1.1:8080/mn/
        ProxyPassReverse / http://192.168.1.1:8080/mn/
        ProxyPass /misc_ http://192.168.1.1:8080/misc_
        ProxyPass /p_ http://192.168.1.1:8080/p_
    </IfModule>

However, I could add a RedirectMatch manage [F] to MachineB and put up
with the occasional weird error, I guess.

Actually, how about a ProxyPass manage http://MachineA.domain.tld/ on
MachineB? This is probably worth a try. Passes apachectl configtest.
Appears to be working.

Cool.

> A more general solution would be to use zeo instead of nightly rsync.
> 
> hth
> 
> Philippe
> 
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...