Re: Proxy Pass based on the first field in the URI

2019-09-12 Thread meir hazon
a DNS record would be added etc based on the env ID Meaning that I will need a good rewrite and an "if" statement for each one of the environments ( based on the env IDs ) Could you please share your thoughts with me? Thanks so much, Meir On Thu, Sep 12, 2019 at 9:34 AM mei

Re: Proxy Pass based on the first field in the URI

2019-09-12 Thread meir hazon
ne of the environments (IDs) Could you please On Wed, Sep 11, 2019 at 11:48 PM Francis Daly wrote: > On Wed, Sep 11, 2019 at 08:41:15PM +0200, meir hazon wrote: > > Hi there, > > > I don't think so, it should always be the first field of the URI but it > > would

Re: Proxy Pass based on the first field in the URI

2019-09-11 Thread meir hazon
Hi, It looks great, I will try it out and let you know. Thanks so much, Meir On Wed, Sep 11, 2019 at 5:56 PM j94305 wrote: > Try something like this: > > map $urlprefix $urlproxy { > "foo" "https://foohost.foo.com";; > "bar" "http://barhost.blah.com";; > "fie" "https://fie.special.domai

Re: Proxy Pass based on the first field in the URI

2019-09-11 Thread meir hazon
ancis Daly wrote: > On Wed, Sep 11, 2019 at 04:45:21PM +0200, meir hazon wrote: > > Hi there, > > > I would also like to pass the message to the proxy without the first part > > of the URI but use the rest of it. > > http://nginx.org/r/proxy_pass > > includes

Proxy Pass based on the first field in the URI

2019-09-11 Thread meir hazon
Hello, 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