Re: ACL / hdr_dom / matching issue

From: Cyril Bonté <cyril.bonte#free.fr>
Date: Fri, 4 Dec 2009 09:40:01 +0100


Le vendredi 4 décembre 2009 09:13:23, Bernhard Krieger a écrit :
> Hello,
>
> we set up an acl like below.
> I got some trouble due to routing to wrong backend.
>
> Requests to "publisher.et.domain.com" are not forwarded to the
> "Herodot" Backend.
> Instead it was forwarded to "ET" backend.

Have you tried to exchange your "use_backend" rules ?

>
> The problem was that the Domainname "publisher.et.domain.com" was
> matched in the acl "aclET -i et.domain.com" too.
>
> In the meanwhile we swapped this two Acls.
>
> Is there are solution to avoid this "wildcard" behavior like
> "^et.domain.com" ?
>
>
> .
> .
> acl aclHERODOT hdr_dom(host) -i publisher.et.domain.com
> acl aclET hdr_dom(host) -i et.domain.com
>
> use_backend ET if aclET
> use_backend HERODOT if aclHERODOT

use_backend HERODOT if aclHERODOT
use_backend ET if aclET

so that HERODOT will first match instead of ET.

-- 
Cyril Bonté
Received on 2009/12/04 09:40

This archive was generated by hypermail 2.2.0 : 2009/12/04 09:45 CET