如何在haproxy中编码url

我是haproxy的新手,想知道在haproxy中编码URL的最佳方法。

http-request redirect code 302 location https://testservice.com/login?service=abc&redirect_uri=https://login.serivce.com?next_url=%[hdr(host)]%[capture.req.uri,regsub(&,%26,g)] unless cookie

在上面的语句中,我想要编码redirect_url之后的任何内容,

请问有人能给我建议吗?

原文链接 https://stackoverflow.com/questions/69293656

点赞