Re: sending arbitrary errors to client

From: Joe Williams <joe#joetify.com>
Date: Mon, 21 Dec 2009 22:58:34 -0800


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/
Received on 2009/12/22 07:58

This archive was generated by hypermail 2.2.0 : 2009/12/22 08:00 CET