florian iragne a écrit :
> Hi,
>
> It seems that in the latest snapshot, the option redir has desappeared.
> The patch you've done to correct the compilation fail seems to delete
> any reference to redir, e.g. :
>
> - Alert("parsing [%s:%d] : server %s only supports options 'backup',
> 'cookie', 'redir', 'check', 'inter', 'fastinter', 'downinter', 'rise',
> 'fall', 'addr', 'port', 'source', 'minconn', 'maxconn', 'maxqueue',
> 'slowstart' and 'weight'.\n",
> + Alert("parsing [%s:%d] : server %s only supports options 'backup',
> 'cookie', 'check', 'inter', 'fastinter', 'downinter', 'rise', 'fall',
> 'addr', 'port', 'source', 'minconn', 'maxconn', 'maxqueue', 'slowstart'
> and 'weight'.\n",
>
> I will have a look to the patch to correct this.
I've patched the snapshot from 2008/02/13 to add the #if / #endif in the right places, then compile and install haproxy.
Once properly configured, the redirection works perfectly well. The only problem is that i must deactivate the server checking, otherwise haproxy declares all server down (when they have redir option) or alternatively up/down (when no redir is specified).
Checking the access log of the webservers, i can see the "HEAD / HTTP/1.1" 200 from haproxy (this is the check string i must send to nginx to enable the proper response for haproxy).
Maybe i've forgotten to apply some part of the patch and this explained this problem. Will try with the snapshot of tomorrow. ;-)
cheers,
Florian Received on 2008/02/14 15:48
This archive was generated by hypermail 2.2.0 : 2008/02/14 16:00 CET