Oh, great thanks!

On Thu, Apr 14, 2016 at 11:50 PM Willy Tarreau <w...@1wt.eu> wrote:

> Hi David,
>
> On Fri, Apr 15, 2016 at 03:35:11AM +0000, David Birdsong wrote:
> > Is there anyway to use:
> >
> > http-request set-var()
> >
> > to set a var for later use in forming an ACL?
> >
> > I've tried all the prefixes to make the variable survive past http
> > processing, but the ACL is always rejected by the config check.
> >
> > <snip>
> > http-request set-var(txn.my_v) base,sdbm,mod(100)
> > acl test_threshold txn.my_v lt 10
> > </snip>
>
> The "var()" sample fetch should be use for this :
>
>  acl test_threshold var(txn.my_v) lt 10
>
> regards,
> willy
>
>

Reply via email to