Proxy Pass based on the first field in the URI

meir hazon meir.hazon at
Wed Sep 11 14:45:21 UTC 2019


I have tried to do the following but couldn't pull it out.

Maybe you will have a good idea as I am not an expert.

I would like to proxy pass to different proxies based on the first part of
a URI.

I would also like to pass the message to the proxy without the first part
of the URI but use the rest of it.

Please note that the length and the URI strings and number of fields might


incoming to nginx,
if $1 == bla proxy pass to
if $1 == vv proxy pass to

Thanks so much,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list