I want to know if there's a way to balance the traffic within directories using haproxy.
I have haproxy balancing all HTTP traffic to server1
& server2
. What I want is to balance all images
directory requests to server1
e.g.
url: http://www.domain.com/images/image_one.jpg
url: http://www.domain.com/images/image_two.jpg
url: http://www.domain.com/images/image_three.jpg
All this requests must go to server1.