Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:21:14+00:00 2026-06-05T19:21:14+00:00

I recently decided to use Apache HTTPD (on CentOS – RPM version httpd-2.2.3-45.el5.centos) with

  • 0

I recently decided to use Apache HTTPD (on CentOS – RPM version httpd-2.2.3-45.el5.centos) with mod_proxy and mod_proxy_balancer to create a software load balancer that fronts my JBoss Application Servers. Current set-up (see below configuration) seems to work fine, and both servers are actively handling inbound requests.

However, I would like to setup an Active-Passive cluster where one server actively handles requests and upon failure, it will fail-over to the passive node, making it active. Is it possible with mod_proxy_balancer ?

My current httpd.conf segment related to this is as follows.

<Proxy balancer://mycluster>
       Order deny,allow
       Allow from all

       BalancerMember http://192.168.2.1:8080 route=node1
       BalancerMember http://192.168.2.2:8080 route=node2
</Proxy>


ProxyPass / balancer://mycluster/ lbmethod=byrequests stickysession=JSESSIONID|jsessionid

ProxyPreserveHost On
ProxyPassReverse /  http://192.168.2.1:8080/
ProxyPassReverse /  http://192.168.2.2:8080/

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:21:16+00:00Added an answer on June 5, 2026 at 7:21 pm

    Use one of the BalancerMember as Hot Standby

    <Proxy balancer://mycluster>
        BalancerMember http://192.168.2.1:8080 retry=30 
        # the hot standby
        BalancerMember http://192.168.2.2:8080 status=+H retry=0
    </Proxy>
    

    Now node1 serves all requests and node2 waits till node1 fails and takes over. Once node1 is up, all requests will be served by node1 again. Apache checks every 30 secs (retry=30) if node1 is up or still down and switches back to node1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am quite familiar with Smarty and recently decided to use Zend framework in
The software group I currently work in has recently decided to start documenting our
I have a simple SQLite database I use to track invoices. I recently decided
Recently, after some discussions, I decided to use List for social buttons such as
My team recently decided not to use the trunk branch that is typical of
I recently started a project where the team decided we'd like to use jQuery
I've been diving into Erlang recently, and I decided to use Mnesia to do
I've recently decided to take on a pretty big software engineering project that will
I started a Rails project recently and decided to use RESTful controllers. I created
recently i've decided to use viewmodels instead of EF EntityObjects. i'm sure that there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.