Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Overlapping base path with other proxy prefix

Just want to check if there can be any issues with two proxies have basepath as below under the same vHost

 

1- /v1/foo

2- /v1/foo/bar

 

Lets assume that 1 does not have an endpoint with 'bar'

0 1 142
1 REPLY 1

No issues. It will work .  All calls that start with /v1/foo/bar will get sent to proxy2.  All calls that start with /v1/foo (but not /v1/foo/bar) will get sent to proxy1. 

 

A Corollary: If proxy1 has a "Conditional flow" that checks for /bar, that conditional flow will never be reached, assuming proxy2 is already deployed in the same environment.