vAntMet's Virtual Musings

Writings and ditherings about all things I encounter as I go through a work-life.

View on GitHub
22 March 2011

Gentoo, Pacemaker, and Apache

by vAntMet

I've been playing around with creating HA Load Balancing Proxy servers with Apache on top of Pacemaker today.

Since Gentoo does it's configuration a little differently than most distributions, this hit a hurdle.

Gentoo puts some Apache command line options in a file /etc/conf.d/apache2 these decide the vohosts that start and other "-D" values. Without these apache will fail to start.

As Pacemaker doesn't know about this file, or these values, apache was failing to spawn, and I was getting an error.

Simply copying the -D values, into the HTTPOPTS variable in the /usr/lib/ocf/resource.d/heartbeat/apache file fixed the problem:

HTTPDOPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D STATUS -D PROXY"

Now I have two load balancers, running in an active/passive configuration...

tags: