HAProxy Load Balancing using roomName

I saw a post here:

@damencho replied with this, every http request has a parameter room=roomName which is the rule for load balancing so every http requests for the same room will land on the same shard. This is how you need to configure HAProxy.

It’s been a month since I started doing this and always failing. Any idea how to make this idea come true ?