I am working on nginx proxy pass with load balancer and the problem is that I have 2 different url for both the backend server, let say my domain is xyzzy.com and 1 request out of 10 should go to xyz-1.com/123/xyz/andsoon and another 9 request should go to xyz-2.com/456/456/andsoon
how to achieve this using nginx configuration.
You must provide weight to your upstream servers:
http://nginx.org/en/docs/http/load_balancing.html#nginx_weighted_load_balancing