Delayed 503 limit_req response - feature request

Maxim Dounin mdounin at mdounin.ru
Sat Jan 26 13:40:24 UTC 2013


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



More information about the nginx mailing list