Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 45985 invoked from network); 5 Oct 2005 19:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2005 19:02:46 -0000 Received: (qmail 58327 invoked by uid 500); 5 Oct 2005 19:02:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 58318 invoked by uid 500); 5 Oct 2005 19:02:35 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 58307 invoked by uid 99); 5 Oct 2005 19:02:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2005 12:02:35 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.169.225] (HELO smtp105.mail.sc5.yahoo.com) (66.163.169.225) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Oct 2005 12:02:38 -0700 Received: (qmail 48301 invoked from network); 5 Oct 2005 18:59:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=5Ni7HjaQDsLqPKAheCGlMG+LZfl2sIzKjH29oOjJcaG2rlo+oKG7pl3n+5c+5RhzyX+vSYfAB/UsXFmSJ1rps/cl3NnHQlmyeUaZp6Wgj+ObNGF5LntdmwD7Wtx4KFjVW5gY4wQf9uX7th0UbtM6+uVH+w0Ly/qOi6MyjqpOq+I= ; Received: from unknown (HELO ?128.103.36.23?) (cmurtaugh@128.103.36.23 with plain) by smtp105.mail.sc5.yahoo.com with SMTP; 5 Oct 2005 18:58:59 -0000 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <200509291208.55557.jansen@hbz-nrw.de> References: <200509291208.55557.jansen@hbz-nrw.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <57D0B560-7B2E-4457-9EEC-5E7F159EA189@yahoo.com> Content-Transfer-Encoding: 7bit From: Colin Murtaugh Date: Wed, 5 Oct 2005 14:59:02 -0400 To: users@httpd.apache.org X-Mailer: Apple Mail (2.734) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_proxy/2.1.7 : "unknown lbmethod" error X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sep 29, 2005, at 6:08 AM, Heiko Jansen wrote: > Hi all. > > Got httpd 2.1.7 this morning and compiled it on my linux box (SuSE > 9.3, > 2.6.11.4-21.9-default, 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 > > > BalancerMember http://10.1.2.100 retry=10 loadfactor=1 > BalancerMember http://10.1.2.101 retry=10 loadfactor=1 > > ProxyPass /proxytest balancer://mycluster lbmethod=byrequests > > 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; > } > ent++; > } > 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 > make install > > I also tried --with-mpm=worker: same effect Try getting rid of the --enable-mods-shared=all ; I wasn't able to get mod_proxy_balancer to work as a DSO. When I compiled it in directly it started working. > > 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. > I agree -- this tripped me up as well. --Colin --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org