Balance based in host and path

Hi,

I’m having problems trying to find a way to balance a group of servers based in host + path (not including query parameters).

For example if I receive the following requests:

  1. https://web1.my-domain.com/example.txt?page=2
  2. https://web2.my-domain.com/example.txt
  3. http://web2.my-domain.com/document.doc?format=txt

The following should be taken into account for the balance hashing algorithm:

  1. web1.my-domain.com/example.txt
  2. web2.my-domain.com/example.txt
  3. web2.my-domain.com/document.doc

I have checked the documentation but can’t see any possible way for the balance configuration attribute to allow this.

For example setting the balance uri setting (correct me if I’m wrong) the following will be used:

  1. /example.txt
  2. /example.txt
  3. /document.doc

And with balance uri whole (again correct me if I’m wrong) the following will be used:

  1. /example.txt?page=2
  2. /example.txt
  3. /document.doc?format=txt

None of these options match what I need. I’m missing something or do I need to add something more complex like a custom header to allow balance with the host and path?.