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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.