B
B
blackbeard2018-06-22 08:42:58
linux
blackbeard, 2018-06-22 08:42:58

Haproxy can balance by url?

I set up Sticky sessions for authorized clients. Can haproxy only apply it to those who hit the authorization url? And the rest to balance as usual on round robin.
Well, that is, use_backend is such and such an if authorization url.
What is the bestpractice in such a situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
blackbeard, 2018-06-22
@Black_beard_ast

Found) You need to create acceslists, like:
acl msg-url-3 url_beg /path/url1/
acl msg-url-4 url_beg /path/url2/
https://www.haproxy.com/documentation/hapee/1-7r1/ ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question