The task of the next:
There are several servers, each of which enshrined their users. You want to make all users a single entry point (single host). Use the url as
http://mycloud.com/{user-id}/resource. Depending on user-id the request should be routed to a specific backend server. The list of users and their respective servers stored in the database.
I want to use nginx for routing, but do not know how to configure. After all, if a register location / proxy_pass for each user individually, it will be sooooo great config! Is there another way?