I have this acl in haproxy:
acl host_app1 hdr(host) -m reg -i ^[^.]+.app.mydomain.com$
Now, I’d like to redirect all requests hitting this haproxy with URLs such as:
==> def.app.mydomain.com/val2/val3
==> ghe.app.mydomain.com/val4/val5/val6
redirect to:
==> abc.app.otherdomain.com/val1
==> def.app.otherdomain.com/val2/val3
==> ghe.app.otherdomain.com/val4/val5/val6
How do we achieve this?
2 posts - 2 participants