[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haproxy
Subject:    Re: sending arbitrary errors to client
From:       Joe Williams <joe () joetify ! com>
Date:       2009-12-22 6:58:34
Message-ID: 4B306E1A.4080206 () joetify ! com
[Download RAW message or body]

Cool, I'll take a look and see if it's something that I can handle.

-Joe


On 12/21/09 9:24 PM, Willy Tarreau wrote:
> On Mon, Dec 21, 2009 at 04:12:01PM -0800, Joe Williams wrote:
>    
>> Willy,
>>
>> Has this been added to the dev releases of 1.4?
>>      
> just on the todo list, and 1.4 is not finished BTW. The dev has
> slowed down because of the difficulties I encountered with a
> few prerequisite adaptations for later keep-alive support.
>
> By the way, if you're interested in implementing the feature
> yourself, it's not that hard. Basically you have to copy the
> redirect rules. Or even better, we could extend the redirect
> rules so that the "return" rules appear in the same list and
> their ordering is respected. That way we could have :
>
>        redirect XXX if YYY
>        return file XXX if YYY
>        redirect XXX if YYY
>
> and have everything processed as expected.
>
> The code to load the file already exists since it's used by
> "errorfile". We could in fact make the "return" statement be
> a redirect rule with a status 200. Then we would support at
> least 'file XXX' or 'content "string"' for small data.
>
> Regards,
> Willy
>
>    

-- 
Name: Joseph A. Williams
Email: joe@joetify.com
Blog: http://www.joeandmotorboat.com/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic