I want my HAProxy to redirect users to backends based on the URL. The mode is TCP, becouse they will connect to rtmp servers. Please show me how?
Why not use something like HLS/MPEG-dash which use HTTP protocols?
You might find it easier to manipulate them with a load balancer.
Also, maybe look at RTMP-NGINX.