Welcome! Log In Create A New Profile

Advanced

Re: Delayed 503 limit_req response - feature request

CM Fields
January 28, 2013 03:10PM
On Sat, Jan 26, 2013 at 8:40 AM, Maxim Dounin <mdounin@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Maxim,

Thank you! The ngx_http_delay_module works perfectly.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Delayed 503 limit_req response - feature request

CM Fields January 25, 2013 02:10PM

Re: Delayed 503 limit_req response - feature request

Maxim Dounin January 26, 2013 08:42AM

Re: Delayed 503 limit_req response - feature request

CM Fields January 28, 2013 03:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready