How to configure failover with an Apache httpd/mod_proxy_balancer and sticky sessions enabled?

Solution Verified - Updated -

Issue

  • How do I configure failover with an Apache httpd/mod_proxy_balancer and sticky sessions enabled?

  • The following configuration shows "503 Service Unavailable" if one of the BalanceMember servers is down:

    <Proxy balancer://mycluster>
         BalancerMember http://node1:8080 route=node1
         BalancerMember http://node2:8080 route=node2
         BalancerMember http://node3:8080 route=node3
    </Proxy>
    ProxyPass /myapp/ balancer://mycluster/myapp/ stickysession=JSESSIONID nofailover=On
    

Environment

  • Red Hat Enterprise Linux
  • Apache httpd / mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content