0

I have use many hour to search and learn the HAProxy config but i can't make the desired result in any way.

I'll explain my scenario.

I have three different server:

api1.test.eu 10.20.30.130:8764
api2.test.eu 10.20.30.119:8764
api3.test.eu 10.20.30.173:8764

The three CLOUD servers are EQUAL. Behind api1/api2/api3 there is an HTTPS API. So i have created another cloud server:

api.test.eu 10.20.30.223

I have installed HAProxy, NGINX with Certbot/Let's Encrypt for make the endpoint SSL like the others.

The thing i want to do is:

Call api.test.eu and round robin on api1/api2/api3

I have try to play with frontend-backend but with no result. I have try also with listen:

listen haproxy_frontend
   bind *:8764

   balance roundrobin

   server api1 api1.test.eu:8764 check
   server api2 api2.test.eu:8764 check
   server api3 api3.test.eu:8764 check

Not work...

Thanks for any help

g-pane
  • 1
  • 1

0 Answers0