Hi.
On 18/07/2018 13:10, Haim Ari wrote:
Hello,
Trying to set backend by regexp
This regexp works outside of haproxy
String:
/1.0/manage/bu/ca?token=68bf68bf68bf68bf68bf&segId=1212121212&partner=123456789
Regexp:
^\/1\.0\/manage\/bu\/ca\?token=.*.segId=.*=123456789
What is the right syntax for this in haproxy ?
I would use
https://regex101.com/r/TjH7Ul/1/
^\/1\.0\/manage\/bu\/ca\?token=(.*).segId=(.*).partner=123456789
and backref \1 \2
But that's just a wild guess as the information's from you are very small.
Which version of haproxy (haproxy -vv)?
Which use case do you have?
http-request/http-response/acl/..?
Some config snipped would also help a little bit ;-).
Thank you
Best regards
Aleks