You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robert Spier <rs...@pobox.com> on 2007/05/14 00:44:37 UTC

[users@httpd] mod_proxy_balancer not working with ProxyRemote

I'm setting up a forward proxy with httpd 2.2.4, and have several
target proxy backends.  I was hoping to be able to use
mod_proxy_balancer to load balance between them.

I'd expect this to work:

ProxyRequests On
ProxyRemote http balancer://mycluster
<Proxy balancer://mycluster>
  BalancerMember http://localhost:8119
  BalancerMember http://localhost:8120
</Proxy>

(localhost:811{8,9} work fine as direct targets of ProxyRemote.)

When making a proxy request for the/any backend http://mysite.com, the
request is proxied successfully - but NOT through the specified
localhost ports, it's requested out through the default route of the
machine.

error_log shows...

[Sat May 13 11:32:52 2007] [error] [client 10.0.0.123] proxy: DNS
lookup failure for: mycluster returned by http://mysite.com/

Which implies something weird going on - with 'mycluster' attempted to
be resolved.

Essentially I'm trying to build a two level balanced http proxy,
using Apache as the first level and load balancer.  The second level
proxy is specialized.

Any ideas?

Thanks-

-R

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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