Nice! It works. Thanks!
On Tue, May 31, 2011 at 4:01 PM, Cyril Bonté <cyril.bonte#free.fr> wrote:
> Hi Matt,
>
> Le mercredi 1 juin 2011 00:46:16, Matt Beckman a écrit :
>> I am trying to rewrite a single path via HAProxy. Without the rule in
>> place, a 404 is returned for the /directory page (from an IIS node).
>> Once I add the rule, the page returns a 504 Gateway Timeout after a
>> minute or so.
>>
>> backend Example_Backend
>> balance uri
>> reqirep ^([^\ ]*)\ (.*)/directory/?[\ ] \1\ \2/target.asp\
>
> Your regexp removes the protocol part (HTTP/1.0, HTTP/1.1) in the request
> line.
> Can you retry with something like this ?
> reqirep ^([^\ ]*)\ (.*)/directory/?\ (.*) \1\ \2/target.asp\ \3
>
> --
> Cyril Bonté
>
Received on 2011/06/01 01:31
This archive was generated by hypermail 2.2.0 : 2011/06/01 01:45 CEST