Re: Nginx Rate limiting for HTTPS requests

2018-05-16 Thread rickGsp
Thanks for responding Maxim. I understood what you are pointing at. Yes I have taken care of time measurement. Actually my test runs for 60 seconds and in total I expect 6000 requests returning 200 status with rate limit configured at 100r/s. However I see 9000 requests returning 200 status which m

Re: Nginx only serves 1 App

2018-05-16 Thread Moshe Katz
Somehow we all missed that - of course you can't run `http2` on port 80 and have it work since `http2` requires SSL. With that configuration, you would have been able to get to the chat subdomain only by going to `https:// chat.mydomain .com:80/` - notice that it is https but is forced back to port

Re: Nginx Rate limiting for HTTPS requests

2018-05-16 Thread Maxim Dounin
Hello! On Wed, May 16, 2018 at 05:00:20AM -0400, rickGsp wrote: > Thanks for responding Maxim. I understood what you are pointing at. Yes I > have taken care of time measurement. Actually my test runs for 60 seconds > and in total I expect 6000 requests returning 200 status with rate limit > conf

Re: Regression in 1.14 when following upstream redirects

2018-05-16 Thread vedranf
Hey, Maxim Dounin Wrote: --- > Hello! > > On Mon, May 14, 2018 at 01:22:46PM -0400, vedranf wrote: > > > There is a problem when nginx is configured to try to follow > redirects (301) > > from upstream server in order to cache responses being

Re: Regression in 1.14 when following upstream redirects

2018-05-16 Thread Maxim Dounin
Hello! On Wed, May 16, 2018 at 10:08:23AM -0400, vedranf wrote: > Hey, > > > Maxim Dounin Wrote: > --- > > Hello! > > > > On Mon, May 14, 2018 at 01:22:46PM -0400, vedranf wrote: > > > > > There is a problem when nginx is configured to try t

Re: Nginx Cache | @ prefix example

2018-05-16 Thread Francis Daly
On Sat, May 12, 2018 at 12:05:51AM -0400, c0nw0nk wrote: Hi there, > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_valid > > The “X-Accel-Expires” header field sets caching time of a response in > seconds. The zero value disables caching for a response. If the value starts

[ANN] OpenResty 1.13.6.2 released

2018-05-16 Thread Yichun Zhang (agentzh)
Hi folks! I am happy to announce the new formal release, 1.13.6.2, of the OpenResty web platform based on NGINX and LuaJIT: https://openresty.org/en/download.html The (portable) source code distribution, the Win32/Win64 binary distributions, and the pre-built binary Linux packages for Ubuntu

Dynamic modules versus build from scratch

2018-05-16 Thread li...@lazygranch.com
The centos nginx from the repo lacks ngx_http_hls_module. This is a technique to add the module without compilation. https://dzhorov.com/2017/04/compiling-dynamic-modules-into-nginx-centos-7 Does anyone have experience with this? I'd like to avoid building nginx from scratch to make the updates go

Re: Nginx Cache | @ prefix example

2018-05-16 Thread c0nw0nk
Thank you for the response and useful information Francis incredibly helpful. I am using the following function with this : http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_background_update proxy_cache_background_update on; My webapp outputting the X-Accel-Expires header

NGX_AGAIN Handling in upload module

2018-05-16 Thread rambabuy
HI I am facing an issue with NGX_AGAIN. ngx upload module is returning NGX_AGAIN while uploading a file. when nginx calls again upload module but upload module return NGX_OK id requestbody exist if( r->requestbody) return NGX_OK and its continue in a loop. any solution to this? Thanks Ram Posted

Re: NGX_AGAIN Handling in upload module

2018-05-16 Thread rambabuy
HI I am facing an issue with NGX_AGAIN. ngx upload module is returning NGX_AGAIN while uploading a file. when nginx calls again upload module but upload module return NGX_OK if requestbody exist. if( r->requestbody) return NGX_OK and its continue in a loop. any solution to this? if (!c->

NGX_AGAIN Handling in upload module

2018-05-16 Thread rambabuy
HI I am facing an issue with NGX_AGAIN. ngx upload module is returning NGX_AGAIN while uploading a file. when nginx calls again upload module but upload module returns NGX_OK if requestbody exist if( r->requestbody) return NGX_OK and its continue in a loop. any solution to this? if (!c->read-