I am setting up a domain with a set of URLs per customer (customerx.domain.com) on a set of Debian servers.
What is the best tool to redirect incoming requests to different servers and/or different services on the same server depending on some request parameters?
For example :
https://generic.domain.com/redir?customer=1&name=x
would be redirected to
https://customerx.domain.com/app1?name=x
and
https://generic.domain.com/redir?customer=2&name=x
would be redirected to
https://customery.domain.com/app2?name=x