Home  >  Q&A  >  body text

Can Nginx load balance URLs?

What I want to ask is, suppose:

I have 3 requests now:
a : http://test.com/aaa
b : http://test.com/bbb
c : http://test.com /ccc

Now I have 3 servers:
s1: Responsible for a, b request load
s2: Responsible for b, c request load
s3: Responsible for a, c request load

It means to ensure that if I request a request http://test.com/aaa, it will be distributed to s1, s2 will not be distributed to s3, and the same is true for b and c. How to achieve this? I think haproxy seems to It can be done.

I hope you can give me some guidance on what needs to be done or configured

PHP中文网PHP中文网2714 days ago399

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 17:13:53

    It seems to be related to the location configuration in the server, I am trying it now

    reply
    0
  • Cancelreply