fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.25k stars 619 forks source link

[QUESTION] How can I do more complex path rewrites (other than just stripping) #762

Open JulianFeinauer opened 4 years ago

JulianFeinauer commented 4 years ago

In my setup I would like to have a more complex url rewrite, e.g.

localhost:999/my/proxy/path -> service:xxx/totally/different/path

If this is already possible I missed it in the documentation. Any help is appreciated!

Julian

JamesJJ commented 4 years ago

Pull request #767 facilitates prepending a path. Combining with existing strip option, this would let you strip=/my/proxy/path prepend=/totally/different/path to achieve the rewrite mentioned above.

AFAIK, in currently released versions, only strip functionality is available.

james-masson commented 3 years ago

It's really confusing that the docs list prepend - but released versions of the code do not support it.