Hi Willy, Your suggestion worked for me. Following rule works for me - acl acl_example1 url_reg type=\S*xxx\S*
Thanks, Praveen. On Sun, Mar 7, 2010 at 11:37 PM, Willy Tarreau <[email protected]> wrote: > On Sun, Mar 07, 2010 at 11:25:07PM -0800, Praveen Patnala wrote: > > Willy, > > > > The value of the type parameter is a regular expression where "xxx" or > "yyy" > > is a substring of the value. So, following url should match acl_xxx : > > /test?type=abcdxxxygg > > Ah OK, that was not clear at all. > > > How do I specify that in the acl rule? > > well, simply "type=[a-z]*xxx[a-z]*" ? > However, be careful about your syntax, because you surely won't want > your acl_xxx rule to match "type=yyyyxxxzzz" which maybe should have > matched "acl_yyy". You must first know the common and specific parts > of your parameters before writing reliable regexs. > > Willy > >

