Re: Custom error messages

From: Konstantin Barinov <sbr#infonet.ee>
Date: Tue, 13 Nov 2007 00:22:44 +0200

But this means single message for all 403 cases?

--
Konstantin



Willy Tarreau wrote:

> Hello,
>
> On Mon, Nov 12, 2007 at 11:26:16PM +0200, Konstantin Barinov wrote:
>> Hello! >> >> Here is another wish from new haproxy user - custom error messages. >> We are trying to use haproxy in front of array of squids as a >> transparent proxy frontend (replacement of Alteon 2424 balancer). >> >> acl ddos src 6.5.4.3/32 >> block if ddos error_msg you_suck >> msg you_suck <html><h1>Please call tech support 234-5678!</h1></html>
>
> There's already something somewhat equivalent. If you block, an error
> 403 is returned. You can redirect error 403 to another location (not
> necessary useful in your case), or pump it from a local file (which
> will be read upon startup). Warning! this is an HTTP file, not HTML.
> This means that you have to provide the return code, the headers and
> the message. It generally does not cause problems because people do
> not change such messages.
>
> Please take a look at examples/haproxy.cfg and examples/errorfiles/*
>
> I'm sure it will satisfy your needs.
>
> Regards,
> Willy
Received on 2007/11/12 23:22

This archive was generated by hypermail 2.2.0 : 2007/11/13 00:00 CET