httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heiko Jansen <>
Subject [users@httpd] mod_proxy/2.1.7 : "unknown lbmethod" error
Date Thu, 29 Sep 2005 10:08:55 GMT
Hi all.

Got httpd 2.1.7 this morning and compiled it on my linux box (SuSE 9.3,, gcc 3.3.5 20050117 (prerelease)).
Toying around with mod_proxy_balancer I have one problem:
When trying to start the httpd I always get 

Syntax error on line 7 of /opt/apache_2.1/conf/extra/httpd-proxy.conf:
ProxyPass unknown lbmethod

with this httpd-proxy.conf:

ProxyRequests off
<IfModule proxy_balancer_module>
  <Proxy balancer://mycluster>
    BalancerMember retry=10 loadfactor=1
    BalancerMember retry=10 loadfactor=1
  ProxyPass /proxytest balancer://mycluster lbmethod=byrequests
  <Location /balancer-manager>
    SetHandler balancer-manager
    Order Deny,Allow
    Deny from all
    Allow from 10.

It seems to me as if in mod_proxy.c in the function set_balancer_param 

    else if (!strcasecmp(key, "lbmethod")) {
        struct proxy_balancer_method *ent =
           (struct proxy_balancer_method *) conf->lbmethods->elts;
        int i;
        for (i = 0; i < conf->lbmethods->nelts; i++) {
           if (!strcasecmp(val, ent->name)) {
               balancer->lbmethod = ent;
               return NULL;
        return "unknown lbmethod";

the struct is empty.
lbmethod=bytraffic has the same effect.

I did not do anything special, just
./configure --prefix=/opt/apache_2.1 --enable-modules=all 
--enable-mods-shared=all --enable-cache --enable-mem-cache --enable-expires 
--enable-headers --enable-proxy --enable-proxy-connect--enable-proxy-http 
--enable-proxy-balancer --enable-ssl --enable-distcache--disable-userdir 
--enable-rewrite --enable-so --with-mpm=prefork
make install

I also tried --with-mpm=worker: same effect

By the way: using just "--enable-modules=all --enable-mods-shared=all" did not 
install mod_proxy. Is that correct? If so, ./configure --help should tell the 
user, I think.

Any clues?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message