This proof of concept validates that the linux proxy Pound
is able to route http requests to different back ends depending on the requested resource. The application starts up 2 node services and one proxy whose configuration can be found in the pound.cfg
file.
- Install docker and docker-compose
- run
docker-compose build
- run
docker-compose up
to spin up pound and 2 http servers
Having the services up and running, open a new terminal and perform a request to:
curl http://localhost
The response should be served from the host: 10.5.0.5:8080
Make another request to the /tid
resource which is handled by another http server.
curl http://localhost/tid
Verify the response is served from a different IP address.