Le jeudi 16 décembre 2010 02:11:30, Shawn Heisey a écrit :
> I've actually solved my problems, but in a non-elegant way, and started
> a new thread for the remaining items I wanted help with.
OK, but I wanted to be sure to understand your problem, because it was not
clear (for me at least), and your examples were not the same from the
beginning to the end of this thread ;-)
Well, in your examples I noticed 2 things :
- some path_beg are wrong (missing a / at the beginning)
- the order of the reqirep/use_backend are important, depdending on your
rules.
In your first example :
acl string1 path_beg -i string1
acl string2 path_beg -i string2
acl string3 path_beg -i string3
should be :
acl string1 path_beg -i /string1
acl string2 path_beg -i /string2
acl string3 path_beg -i /string3
And then in your last example :
acl foo path_beg -i foo
acl fooc path_beg -i fooc
acl fooh path_beg -i fooh
acl foothumb path_beg -i foothumb
should be :
acl foo path_beg -i /foo
acl fooc path_beg -i /fooc
acl fooh path_beg -i /fooh
acl foothumb path_beg -i /foothumb
and :
use_backend apache_fooh if bot fooh
use_backend apache_foo if foo
use_backend apache_fooc if fooc
use_backend apache_foothumb if foothumb
should be in this order :
use_backend apache_fooh if bot fooh
use_backend apache_fooc if fooc
use_backend apache_foothumb if foothumb
use_backend apache_foo if foo
=> foo must match only if fooc or foothumb didn't.
--
Cyril Bonté