Forum: NGINX I want to ask something about limit_zone

8b660ec73f4c82689fead282d340346e?d=identicon&s=25 Benimaur Gao (Guest)
on 2012-10-25 10:19
(Received via mailing list)
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!
97b81453789bfb9cb8a3f11e71ca3017?d=identicon&s=25 Sergey Budnevitch (Guest)
on 2012-10-25 10:39
(Received via mailing list)
On 25  Oct2012, at 12:18 , Benimaur Gao <benimaur@gmail.com> 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
8b660ec73f4c82689fead282d340346e?d=identicon&s=25 Benimaur Gao (Guest)
on 2012-10-30 03:21
(Received via mailing list)
thanks, but is this method a global setting?
can I only change the return code for limit_zone?
C9264ddbc4a782fff755b0125364cbdf?d=identicon&s=25 Valentin V. Bartenev (Guest)
on 2012-10-30 10:22
(Received via mailing list)
On Tuesday 30 October 2012 06:20:47 Benimaur Gao 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.com/support.html
http://nginx.org/en/donation.html
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.