Re: acl regex

2015-11-24 Thread Willy Tarreau
Hi Cyril, On Tue, Nov 24, 2015 at 10:58:47PM +0100, Cyril Bonté wrote: > Currently, haproxy won't match an url parameter if its value is empty. I > tend to think it should : an empty value is different from not providing > the parameter at all. > > The function "find_next_url_param()" should un

Re: acl regex

2015-11-24 Thread Guillaume Bourque
Hi all, I should be able to test this in our production setup a few days after I can have an rpm ready with the patch we are running on rhel 6.x Merci Cyril --- Guillaume Bourque, B.Sc., Le 2015-11-24 à 16:58, Cyril Bonté a écrit : > Hi all, > > I revive this thread. > > Le 12/11/2015 09

Re: acl regex

2015-11-24 Thread Cyril Bonté
Hi all, I revive this thread. Le 12/11/2015 09:59, Igor Cicimov a écrit : On Thu, Nov 12, 2015 at 6:44 PM, Guillaume Bourque mailto:guillaume.bour...@logisoftech.com>> wrote: Hi, thanks for the suggestion but it did not work for me. I tried acl fr_top url

Re: acl regex

2015-11-12 Thread Guillaume Bourque
Hourra Aleks, it’s working thanks a lot I will try more in deep in a few hour but wanted to tank you as soon as I test it Again thanks --- Guillaume Bourque, B.Sc., Le 2015-11-12 à 16:19, Aleksandar Lazic a écrit : > Hi. > > Am 12-11-2015 21:16, schrieb Guillaume Bourque: >> Hi all, >> I’

Re: acl regex

2015-11-12 Thread Aleksandar Lazic
Hi. Am 12-11-2015 21:16, schrieb Guillaume Bourque: Hi all, I’m not far but it does not work so any recommendation would be very helpfull I just need some very simple redirect but after looking into aloa doc the happy doc, I can’t find examples that could help me do this, okay I must admit I d

Re: acl regex

2015-11-12 Thread Guillaume Bourque
Hi all, I’m not far but it does not work so any recommendation would be very helpfull I just need some very simple redirect but after looking into aloa doc the happy doc, I can’t find examples that could help me do this, okay I must admit I did not sleep for the last 30 hours so that could expl

Re: acl regex

2015-11-12 Thread Guillaume Bourque
Hello Igor, thanks a lot still not working would I need to escape the = > http-request redirect location /store code 301 if { capture.req.uri lang\= -m > found } Bye --- Guillaume Bourque, B.Sc., Le 2015-11-12 à 03:59, Igor Cicimov a écrit : > > > On Thu, Nov 12, 2015 at 6:44 PM, Guill

Re: acl regex

2015-11-12 Thread Igor Cicimov
On Thu, Nov 12, 2015 at 6:44 PM, Guillaume Bourque < guillaume.bour...@logisoftech.com> wrote: > Hi, > > thanks for the suggestion but it did not work for me. I tried > >acl fr_top url_reg/?lang= >acl fr_top url_reg/?lang=

Re: acl regex

2015-11-11 Thread Guillaume Bourque
Hi, thanks for the suggestion but it did not work for me. I tried acl fr_top url_reg/?lang= acl fr_top url_reg/?lang=$ # off acl fr_topurlp_reg(lang\=$,?) -m found # off acl fr_top

Re: acl regex

2015-11-11 Thread Igor Cicimov
On 12/11/2015 5:30 PM, "Guillaume Bourque" < guillaume.bour...@logisoftech.com> wrote: > > Hello Bryan > > I’m running haproxy 1.5.4 and I can’t find any example on how to user req.uri if you could give a examples on how to match a specific query to redirect to another > > From http://domain/pages/

Re: acl regex

2015-11-11 Thread Guillaume Bourque
Hello Bryan I’m running haproxy 1.5.4 and I can’t find any example on how to user req.uri if you could give a examples on how to match a specific query to redirect to another From http://domain/pages/store.php?lang=fr to http://domain/store/ That would be great ! TIA --- Guillaume Bourq

Re: acl regex

2015-11-11 Thread Bryan Talbot
On Wed, Nov 11, 2015 at 8:43 PM, Guillaume Bourque < guillaume.bour...@logisoftech.com> wrote: > Hi all, > > I can’t create an acl that will match this > > http://domain/?lang= > > I tried > > acl fr_top path_reg^/.lang\=$ > acl fr_top path