For development purposes, not everyone can install nginx on their machines (like our developers on Windows environments), but we want to be able to do a reverse proxy that behaves like nginx.

Here's our very specific case:

* we have a spring boot REST service running on <http://0.0.0.0:8081>
* we have spring boot web application running on <http://0.0.0.0:8082>

We would like to serve both services from <http://0.0.0.0:8080>

So we would like to map it like this:

* requests to <http://0.0.0.0:8080/> get proxied to <http://0.0.0.0:8082>
* requests to <http://0.0.0.0:8080/api> get proxied to <http://0.0.0.0:8081>

That way it works like nginx with url rewrite reverse proxying.

I checked out the Undertow source code and examples, and even this specific example: [Reverse Proxy Example](https://github.com/undertow-io/undertow/blob/1.3.x/examples/src/main/java/io/undertow/examples/reverseproxy/ReverseProxyServer.java), but this is a load balancer example, I haven't found any example that covers what I need.

Also, I know Undertow is capable of this, because we know we can configure WildFly to cover this specific case without issues through the Undertow component configuration, but we would like to implement it ourselves as a lightweight solution for local development.

Does anyone know of an example to do this? or any documentation that has enough info to implement this? because I've also read Undertow's documentation on reverse proxying and it's not helpful at all.

Thanks