Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : 'unknown lbmethod' error

2005-10-06 Thread Jim Jagielski
Heiko Jansen wrote:
> 
> Am Donnerstag, 6. Oktober 2005 18:08 schrieb "Joost de Heer" 
> <[EMAIL PROTECTED]> [Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : 'unknown 
> lbmethod' 
> error]:
> 
> > >> 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.
> > 
> > I think I already mentioned this to some Apache people at ApacheCon.
> > Perhaps because you don't want people to accidentally create an open
> > proxy, so you have to explicitly add it?
> 
> That would be ok for me if it would mean you only have to uncomment the 
> respective LoadModule directive. 
> But as far as I remember it didn't even copy the .so file to the installation 
> dir!
> 

2.1.8 uses providers rather than hooks to implement lbmethods,
so the above issue is more robustly solved in 2.1.8

-- 
===
 Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
   "If you can dodge a wrench, you can dodge a ball."

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : 'unknown lbmethod' error

2005-10-06 Thread Heiko Jansen
Am Donnerstag, 6. Oktober 2005 18:08 schrieb "Joost de Heer" 
<[EMAIL PROTECTED]> [Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : 'unknown lbmethod' 
error]:

> >> 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.
> 
> I think I already mentioned this to some Apache people at ApacheCon.
> Perhaps because you don't want people to accidentally create an open
> proxy, so you have to explicitly add it?

That would be ok for me if it would mean you only have to uncomment the 
respective LoadModule directive. 
But as far as I remember it didn't even copy the .so file to the installation 
dir!

Heiko


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : 'unknown lbmethod' error

2005-10-06 Thread Joost de Heer
>> 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.

I think I already mentioned this to some Apache people at ApacheCon.
Perhaps because you don't want people to accidentally create an open
proxy, so you have to explicitly add it?

There are other modules that aren't included in --enable-modules=all
(mod_ssl comes to mind, but there are others)

Joost


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : "unknown lbmethod" error

2005-10-05 Thread Heiko Jansen
Am Mittwoch, 5. Oktober 2005 20:59 schrieb Colin Murtaugh 
<[EMAIL PROTECTED]> [Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : "unknown lbmethod" 
error]:

> > 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
[...]

Seems to be no longer the case with 2.1.8-beta.

> > 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.

At least for 2.1.8-beta that is no problem: balancer works.

However, as you already reported: The manager interface still has the problems 
with balancer members specified with more than pure hostnames / IPs.

And there seems to be another problem with the balancer. When using
ProxyPass /Test balancer://mycluster lbmethod=byrequests
the back end servers received /test/ instead.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=36906

> > 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.

Going to check this again for 2.1.8 and will file a bug report if it still 
applies.

Heiko

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_proxy/2.1.7 : "unknown lbmethod" error

2005-10-05 Thread Colin Murtaugh

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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_proxy/2.1.7 : "unknown lbmethod" error

2005-09-29 Thread Heiko Jansen
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

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?
Heiko

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]