Re: Using reqirep causes 504 timeout

From: Cyril Bonté <cyril.bonte#free.fr>
Date: Wed, 1 Jun 2011 01:01:56 +0200


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:01

This archive was generated by hypermail 2.2.0 : 2011/06/01 01:15 CEST