Welcome! Log In Create A New Profile

Advanced

Execution order of HttpLimitReq, proxy_pass and rewrites

March 30, 2011 09:28AM
Hello,

I have tried to rate limit a resource using HttpLimitReq that is passed on to a backend Apache server. Now when I try to limit this resource, nothing is blocked and all requests go through. When using static resources, the limit_req works as expected. Here is my config:

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

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

I think this might be related to the execution order or these modules. Which of the commands limit_req and proxy_pass is evaluated first? How can I limit the access to resources in a backend server?

Thank you for your help!

Best regards,
Jonas Kaufmann
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: 242
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