SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Saturday, July 4, 2009

Balancermember Can't find 'byrequests' lb method

I am using apache 2.2.8 for my debian ubuntu, while configuring apacehe with proxy balancer.I faced the problem "BalancerMember Can't find 'byrequest lb method'".
sudo /etc/init.d/apache2 restart
* Forcing reload of web server (apache2)...
Syntax error on line 673 of /etc/apache2/apache2.conf:
BalancerMember Can't find 'byrequests' lb method
...fail!
## Apache file (from error line)

BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001


ServerName data_seed
DocumentRoot /var/www/ruby/public

Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
RewriteRule ^/$ /index.html [QSA]
Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]


Then i finally installed the package apt-get install libapache2-mod-proxy-html libxml2-dev.Now while restarting my apache server i didn't get any error message.

5 comments :

  1. Check httpd -M
    it shows list of modules installed for ur httpd. Chk if
    proxy_module (shared)
    proxy_balancer_module (shared)
    proxy_ftp_module (shared)
    proxy_http_module (shared)
    proxy_connect_module (shared)

    are present in list.

    If
    proxy_balancer_module (shared)
    is missing.. it gives error while doing httpd -S
    or httpd restart.
    Error is :BalancerMember Can't find 'byrequest lb method

    U need to activate or installed missing modules

    ReplyDelete
  2. @Mahendra - This solution is not working ...

    ReplyDelete
  3. use this
    LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so

    ReplyDelete
  4. a2enmod proxy_balancer

    ReplyDelete