Good day to all. I'll give you an example, I tried it
There are 2 entries for BalanceMember in /etc/hosts. Of course, don’t look at these virtual machines, it’s a black box. All requests return to 404 not found.
ServerName service.test.com SSLProxyEngine on <Proxy "balancer://service"> BalancerMember https://service1.ng.com BalancerMember https://service2.ng.com </Proxy> ProxyPass "/" "balancer://service/" ProxyPassReverse "/" "balancer://service/" If I edit /etc/hosts and change the name from service1.ng.com to service.ng.com then change conf apache to this
ServerName service.test.com SSLProxyEngine on <Proxy "balancer://service"> BalancerMember https://service.ng.com BalancerMember https://service2.ng.com </Proxy> ProxyPass "/" "balancer://service/" ProxyPassReverse "/" "balancer://service/" One request out of 2 will return 200 OK. Do you understand, right? But I can’t understand. What does the proxy send to one of the balancers, that everything works. Well, or after the balancer, I don’t know.
Thank you in advance for your response.