Delayed 503 limit_req response - feature request

CM Fields cmfileds at gmail.com
Mon Jan 28 20:08:31 UTC 2013


On Sat, Jan 26, 2013 at 8:40 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Fri, Jan 25, 2013 at 02:09:21PM -0500, CM Fields wrote:
>
>> Nginx Feature Request: Delay 503 limit_req responses
>>
>> We would like to delay the 503 response to clients which exceed the
>> limit_req value rather then send an immediate 503. The delay would be
>> in milliseconds or in tenths of a second increments for example.
>
> Try the following trivial module:
>
> http://mdounin.ru/hg/ngx_http_delay_module/
>
> With the config like
>
>     error_page 503 /errors/503.html;
>
>     location = /errors/503.html {
>         delay 200ms;
>     }
>
> --
> Maxim Dounin
> http://nginx.com/support.html
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Maxim,

Thank you! The ngx_http_delay_module works perfectly.



More information about the nginx mailing list