I
I
Ivan2020-04-11 17:22:04
Computer networks
Ivan, 2020-04-11 17:22:04

How to make a redirect in haproxy?

Hello!
There is an exchange server with a haproxy balancer. Now migrating to the new version.
You need to make a filter on the http header for OWA, if one address is on backend 1, if another address is on backend 2.
I don’t really understand how to do it in the current config - made in the image and likeness - https://www.haproxy.com /static/media/uploads/eng/r...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-04-12
@Amigo83

The general algorithm is as follows:
1. write different backends for each version of the exchange - backends look at their version
2. write acl according to the headers you need
3. write use_backend be_newservers if acl_newservers - to new servers
default_backend old_servers
Always focus on the configuration of your version of HAProxy
https:/ /cbonte.github.io/haproxy-dconv/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question