I want to ask something about limit_zone

I’ve learned that if some IP exceeds the limit, a 503 http status code
will be returned.
I’m trying to find a way to change the default 503 value, e.g. use
some other code, such as 403 to replace it, can I ? and how to?
thanks!

On 25 Oct2012, at 12:18 , Benimaur G. [email protected] wrote:

I’ve learned that if some IP exceeds the limit, a 503 http status code
will be returned.
I’m trying to find a way to change the default 503 value, e.g. use
some other code, such as 403 to replace it, can I ? and how to?
thanks!

error_page 503 =403 /error_page.html;

http://nginx.org/r/error_page

thanks, but is this method a global setting?
can I only change the return code for limit_zone?

On Tuesday 30 October 2012 06:20:47 Benimaur G. wrote:

thanks, but is this method a global setting?
can I only change the return code for limit_zone?

Nginx does not return 503 itself, except limit_req/limit_conn.

wbr, Valentin V. Bartenev

http://nginx.org/en/donation.html