Can Apache BalancerMember be configured to use unix domain sockets?

I use the Apache Proxy balancing directive to connect a set of thin servers (for Rails).

Same:

<Proxy balancer://thinservers> BalancerMember http://127.0.0.1:5000 route=thin0 BalancerMember http://127.0.0.1:5001 route=thin1 BalancerMember http://127.0.0.1:5002 route=thin2 </Proxy> 

However, thin ones can also be configured to use unix domain sockets.

So, I want to be able to do something like:

  <Proxy balancer://thinservers> BalancerMember unix://tmp/thin.0.sock route=thin0 BalancerMember unix://tmp/thin.1.sock route=thin1 BalancerMember unix://tmp/thin.2.sock route=thin2 </Proxy> 

But Apache does not accept this. Obviously nginx can do this, but I really want to use Apache.

Is there any way?

+6
ruby-on-rails apache thin mod-proxy
source share
1 answer

The short answer is no.

From http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html

It provides load balancing support for HTTP, FTP, and AJP13 protocols.

Thus, these are the only supported protocols.

+3
source share

All Articles