Nginx $upstream_cache_status not available when used in rate limiting

2016-07-18 Thread Linna.Ding
Hi, I use Nginx as reverse proxy, and I would like to rate limit the requests to origin server, but only limit the requests with cache status EXPIRED. I just tested with a map "cache_key", and the rate limiting doesn't work, the $cache_key was logged as empty string. But changing $upstream_cache_

Re: fix ngx_reset_pool

2016-07-18 Thread Maxim Dounin
Hello! On Tue, Jul 19, 2016 at 12:38:58AM +0800, 梁思健 wrote: > # HG changeset patch > # User Liang Sijian > # Date 1468859189 -28800 > # Tue Jul 19 00:26:29 2016 +0800 > # Node ID 45ef1e0a48a82b2a81db6bc447aaeb16a10056f9 > # Parent 6acaa638fa074dada02ad4544a299584da9abc85 > fix ngx_reset_po

fix ngx_reset_pool

2016-07-18 Thread ??????
# HG changeset patch # User Liang Sijian # Date 1468859189 -28800 # Tue Jul 19 00:26:29 2016 +0800 # Node ID 45ef1e0a48a82b2a81db6bc447aaeb16a10056f9 # Parent 6acaa638fa074dada02ad4544a299584da9abc85 fix ngx_reset_pool diff --git a/src/core/ngx_palloc.c b/src/core/ngx_palloc.c --- a/src/cor

Re: while building own nginx module error to find user defined header file

2016-07-18 Thread Maxim Dounin
Hello! On Mon, Jul 18, 2016 at 12:28:34PM +0530, Pankaj Chaudhary wrote: > I have written my own nginx module and i have my user defined header files > but while building i am getting error header file not found. If you are using header files in your module, you have to add your module directo