Hi to all ,

  Yesterday  I've try to match on regexp from client user-agent and redirect
it ..

 

The configuration  is on frontend is like this:

 ::

        acl test_match hdr_reg -i user\-agent:\
test|android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|
ip(hone|od)|iris|kindle|lge\ |maemo|midp|mmp|opera\ m(ob|in)i|palm(\
os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vo
dafone|wap|windows\ (ce|phone)|xda|xiino

 

          redirect prefix http://xxxxxxx?rule1 if test_match

::.

 

It is working fine for most of PCs and mobiles  ( redirect only mobile ) but
with exactly this user-agent :

 

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6;
SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729)

 

( IE 8 with Vista SP2 ) it somehow match rule ::

 

So the question is : 

Where can I find some info about regular expressions  library used in
haproxy ?

I need to find out why it match in this very case :..

 

Thanks in advance : 

   Georgi

 

 

Reply via email to