Nice! It works. Thanks!

- Matt

On Tue, May 31, 2011 at 4:01 PM, Cyril Bonté <[email protected]> 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é
>

Reply via email to