Thursday, November 8, 2007

How to Install Apache2 for SSL and Load Balancing, Part 3

If I add the following to my Apache config (inside the SSL virtual host):

<location /balancer-manager>
SetHandler balancer-manager

I can simply type in and bring up a web-based configuration manager for Apache load balancing! Quite nifty!

The balance manger should be secured:

sudo mkdir /var/www/ssl/balancer-manager
sudo htpasswd -c /var/.htpasswd admin

sudo gedit /var/www/ssl/balancer-manager/.htaccess
and add:

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/.htpasswd
<limit GET PUT POST>
require valid-user

No comments: