Hi Lukas,
That's what I do on my fake error backend:
backend error_429
mode http
errorfile 429 /etc/haproxy/errors/429rate.http
Is this the one you mean?
On Tuesday, 16 August 2016, Lukas Tribus <[email protected]> wrote:
> Hello,
>
>
>
> Am 13.08.2016 um 20:56 schrieb Artem Lalaiants:
>
>> Hi Lukas,
>>
>> The thing is I need to return a custom error page with a certain http
>> code if the rate is exceeded.
>>
>
> You can return customer error pages/return codes for the 50x family of
> errors:
>
> http://cbonte.github.io/haproxy-dconv/1.6/configuration.html#4-errorfile
>
>
>
> That would work on backend or server maxconn exhaustion, not global or
> frontend exhaustion though.
>
>
>
> Lukas
>
>
>
>
--
Artem Lalaiants
Infrastructure Engineer, GeoComply
skype: artem.kharkov
www.geocomply.com
--
*CONFIDENTIALITY NOTICE: The information contained in this email message is
intended only for use of the intended recipient. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
immediately delete it from your system and notify the sender by replying to
this email.*