Welcome! Log In Create A New Profile

Advanced

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

Francis Daly
March 30, 2011 09:44AM
On Wed, Mar 30, 2011 at 09:28:04AM -0400, j0nes2k wrote:

Hi there,

A general rule of nginx is that one request is handled by one location
block. Only the configuration in, or inherited by, that location matters.

(An internal redirect counts as a new request, more or less.)

> when I try to limit this resource,
> nothing is blocked and all requests go through.

> location /cgi-bin/test\.pl {
> limit_req zone=one nodelay burst=3;
> }

There is a limit_req in this location.

> location /cgi-bin/ {
> proxy_pass http://default_backend/cgi-bin/;
> }

There's no limit_req in this location.

Does that (indirectly) answer your question?

f
--
Francis Daly francis@daoine.org

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

Execution order of HttpLimitReq, proxy_pass and rewrites

j0nes2k March 30, 2011 09:28AM

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

Francis Daly March 30, 2011 09:44AM

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

j0nes2k March 30, 2011 09:51AM

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

Igor Sysoev March 30, 2011 10:10AM

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

Francis Daly March 30, 2011 11:38AM

Re: Execution order of HttpLimitReq, proxy_pass and rewrites

j0nes2k March 30, 2011 02:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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