In addition to the strip_path=true/false option we need to strip only a part (prefix) of the path.
I’d suggest an option like strip_path_prefix="/some-text".
The use case is having a single service with multiple routes attached which allow different consumers, for example:
- /route - strip_path=true, allow consumer1
- /route/health - strip_path_prefix="/route", allow consumer2
Such rewrites are basic Nginx functionality so it shouldn’t be hard to implement.
I have seen quite a few people asking for this feature, eg:
Appreciate any reaction,