HAProxy reqrep remove URI on backend request
You have this: reqrep ^([^\ ]*)\ /web1/(.*) \1\ /\2 I think you want this: reqrep ^([^\ ]*\ /)web1[/]?(.*) \1\2 The difference being that the second one will work if the / after webN is omitted. In answer to your comment below, going in to detail about how the expressions above work is more effort than … Read more