Welcome! Log In Create A New Profile

Advanced

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

oscaretu .
September 27, 2016 05:18AM
Perhaps this can help:

http://stackoverflow.com/questions/12022429/http-status-code-for-overloaded-server

Another option is a *429 - Too Many Requests* response.

Defined in RFC6585 - http://tools.ietf.org/html/rfc6585#section-4

The spec does not define how the origin server identifies the user, nor how
it counts requests.

For example, an origin server that is limiting request rates can do so
based upon counts of requests on a per-resource basis, across the entire
server, or even among a set of servers.

Likewise, it might identify the user by its authentication credentials, or
a stateful cookie.

Also see the Retry-After header in the response.

Kind regards,
Oscar


On Tue, Sep 27, 2016 at 10:59 AM, itpp2012 <nginx-forum@forum.nginx.org>
wrote:

> General rule of thumb is set it as low as possible, as soon as 503's are
> getting your users upset or resources are getting blocked, then double the
> values, keep an eye on the logs, double it one more time when required,
> done.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,269862,269866#msg-269866
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Oscar Fernandez Sierra
oscaretu@gmail.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Recommended limit_req and limit_conn for location ~ \.php$ {}

c0nw0nk September 26, 2016 07:41PM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

Francis Daly September 27, 2016 03:58AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

itpp2012 September 27, 2016 04:59AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

oscaretu . September 27, 2016 05:18AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

c0nw0nk September 27, 2016 10:24AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

Alt September 27, 2016 07:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
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