Apache Load Balancer , redundancy
===

I would like to know how I can achive such a design in which there are two machines and two same application installed on them working as pair (active/active state). If one of them is down the other will take control and reply the answers coming from loadbalancer.

In that case all requests are going through loadbalancer, and I want loadbalancer send these request only one machine and detect if it is alive. When this machine is down all request will forwarded to other machine.

Actually I know that Apache Http Load balancer does similar work but it forward messages to all active machines not only one machine. 