Delayed 503 limit_req response - feature request

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


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:

With the config like

    error_page 503 /errors/503.html;

    location = /errors/503.html {
        delay 200ms;

Maxim Dounin

More information about the nginx mailing list