On Thu, Feb 3, 2011 at 5:44 AM, Raphael Bauduin <rbli...@gmail.com> wrote:
>>  server mainappserver 10.12.13.127:80 weight 16 maxconn 16 check inter 10s
>>  acl maintenance_mode nbsrv eq 0
>>  reqrep ^([^\ ]*)\ /([^\ ]*)\ (.*)     \1\ /\ \3 if maintenance_mode
>>  server static-backup 10.12.13.14:2001 backup
>>
>> Raph
>
> I sent this mail too fast: the reqrep is applied even when the acl is
> not verified.... (using ubuntu package v 1.3.18-1).
>


haproxy 1.3 doesn't suppor the "reqrep pattern [if | unless] acl"
form.  That's a 1.4 feature.  Unfortunately, the 1.3 configuration
parser doesn't complain about it either so it just silently accepts
the reqrep and applies it every time.


reqrep  <search> <string>
reqirep <search> <string>   (ignore case)
  Replace a regular expression with a string in an HTTP request line


-Bryan

Reply via email to