<div dir="ltr">Hello,<div><br></div><div>I have tried to do the following but couldn't pull it out.</div><div><br></div><div>Maybe you will have a good idea as I am not an expert.</div><div><br></div><div>I would like to proxy pass to different proxies based on the first part of a URI.</div><div><br></div><div>I would also like to pass the message to the proxy without the first part of the URI but use the rest of it.</div><div><br></div><div>Please note that the length and the URI strings and number of fields might change </div><div><br></div><div>example,</div><div><br></div><div>incoming to nginx,</div><div><a href="https://yyy.com/bla/aa/er">https://yyy.com/bla/aa/er</a> </div><div>if $1 == bla proxy pass to <a href="http://xxx.com/aa/er">http://xxx.com/aa/er</a></div><div>if $1 == vv proxy pass to <a href="http://ccc.com/aa/er">http://ccc.com/aa/er</a></div><div><br></div><div>Thanks so much,</div><div><br></div><div>Meir</div><div><br></div></div>