How to launch a Load Balancer for the Apache Reverse Proxy server?

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

How to launch a Load Balancer for the Apache Reverse Proxy server?

Post by hack3rcon » 2021/03/12 08:25:17

Hello,
I configured my Apache Reverse Proxy as a Load Balancer to handle Back-End servers. When a Back-End server stopped, then another one provide service:

Code: Select all

<VirtualHost *:80>

<Proxy balancer://cluster>

BalancerMember http://Server1's-IP/

BalancerMember http://Server2's-IP/

</Proxy>

ProxyPreserveHost On
ProxyPass / balancer://cluster/
ProxyPassReverse / balancer://cluster/
</VirtualHost>
How can I do it with Reverse Proxy server itself? When a Reverse Proxy stopped, then another Reverse Proxy provides services?

Thank you.

BShT
Posts: 583
Joined: 2019/10/09 12:31:40

Re: How to launch a Load Balancer for the Apache Reverse Proxy server?

Post by BShT » 2021/03/16 18:49:33

i´m using haproxy, its easy

Post Reply