Re: Re: Re :Re: Re:Reverse-proxying: Flask app with Bokeh server on Nginx

2017-05-17 Thread Francis Daly
On Wed, May 17, 2017 at 12:34:17PM +0200, J K via nginx wrote: Hi there, > Initially, without https, everything was running well. Yes. > I was deploying a > Bokeh server with the 'company_abc' app, and used a Flask app to render the > website and handle login/redirecting/etc. Yes. > Everythin

Upstream block: backup with max_fails=0 does not appear to work as expected

2017-05-17 Thread Jonathan Simowitz via nginx
Hello, I have an upstream block with two servers as follows: upstream { server foo.com; server bar.com max_fails=0 backup; } My desired use case would be that the foo.com server is hit for all requests and can be marked as down by nginx if it starts serving errors. In this case nginx will fa

Re: Auto refresh for expired content?

2017-05-17 Thread Francis Daly
On Wed, May 17, 2017 at 03:29:03AM -0400, mkuehn wrote: Hi there, > proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 > keys_zone=spieldaten:100m max_size=150m inactive=5d use_temp_path=off; > ... ... ... > proxy_cache test; I'm pretty sure that nginx's internationalisation/loc

Re: Auto refresh for expired content?

2017-05-17 Thread mkuehn
Hi Roman, thanks for your reply - with proxy_cache_background_update is OFF, the correct testfile "test.js"is requested: "GET /test.js HTTP/1.0" 200 199503 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36" With proxy_cache_b

why reuseport don't increases throughoutput?

2017-05-17 Thread fengx
Hello It shows the new feature reusport from v1.9.1 can increase the QPS by 2-3 times than accept_mutex on and off in this article https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/. But the result is disappointed when we have the test in our production with V1.11.2.2. It don't even

Re: Auto refresh for expired content?

2017-05-17 Thread Roman Arutyunyan
Hi, On Wed, May 17, 2017 at 03:29:03AM -0400, mkuehn wrote: > Hi Francis, > > thanks a lot for your reply! > > I tried to use proxy_cache_background_update with the following config > part. > > proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 > keys_zone=spieldaten:100m max_size=150m ina

Re: nginx binaries with auth_request module

2017-05-17 Thread Valentin V. Bartenev
On Wednesday 17 May 2017 10:40:32 Ofira Shaer wrote: > Hi > > Is there any binary linux version of nginx *with* the http_auth_request_module? The documentation says the source has to be compiled with a special flag, but it seems that the windows addition already has it inside. > > Thanks. >

nginx binaries with auth_request module

2017-05-17 Thread Ofira Shaer (oshaer)
Hi Is there any binary linux version of nginx *with* the http_auth_request_module? The documentation says the source has to be compiled with a special flag, but it seems that the windows addition already has it inside. Thanks. ___ nginx mailing li

Re: Re: Re :Re: Re:Reverse-proxying: Flask app with Bokeh server on Nginx

2017-05-17 Thread J K via nginx
Hi Francis, Initially, without https, everything was running well. I was deploying a Bokeh server with the 'company_abc' app, and used a Flask app to render the website and handle login/redirecting/etc. Everything was behind a Nginx server. Then, I installed https the Bokeh app would not be rende

Re: Auto refresh for expired content?

2017-05-17 Thread mkuehn
Hi Francis, thanks a lot for your reply! I tried to use proxy_cache_background_update with the following config part. proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 keys_zone=spieldaten:100m max_size=150m inactive=5d use_temp_path=off; ... ... ... proxy_cache test;