我在一组Debian服务器上为每个客户(customerx.domain.com)设置一组URL。
根据一些请求参数,在同一台服务器上将传入请求redirect到不同服务器和/或不同服务的最佳工具是什么?
例如 :
https://generic.domain.com/redir?customer=1&name=x
将被redirect到
https://customerx.domain.com/app1?name=x
和
https://generic.domain.com/redir?customer=2&name=x
将被redirect到
https://customery.domain.com/app2?name=x
Nginx是一个广泛使用和function强大的HTTP服务器,具有强大的代理function。