Re:Re: Re: Re: proxy_upstream_next while no live upstreams

2017-05-12 Thread Wu Bingzheng
Because the last request before this 502-request was almost 20 minutes ago, so there was no error log in 20 minutes before this 502-request. This is some strange, and only happens very rarely. I know it's difficult to debug this if not reproduced. I just ask here to see if this is a known ques

Re: different Memory consumption for H1 and H2

2017-05-12 Thread Muhui Jiang
HI Thanks for your great answer. you mentioned that sendfile() is to copy between kernel space and userland. I am curious, why this whole process don't need to malloc any memory? Could you please explain more on the detail implementation of the sendfile(). Many Thanks Regards Muhui 2017-05-11 23

Re: Trailing Slash Redirect Loop Help

2017-05-12 Thread Francis Daly
On Wed, May 10, 2017 at 11:10:36AM -0400, Alex Med wrote: Hi there, > Yes, I am realizing that is a nightmare going against the trailing-slashed > directory nature. So I am going to have this rule take off slashes from > anything but directories. Do you have any suggestions as how to do it, but

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

2017-05-12 Thread Francis Daly
On Fri, May 12, 2017 at 04:28:12PM +0200, J K via nginx wrote: Hi there, > > location /bokeh/ { > > proxy_pass http://127.0.1.1:5006; > > > > # .. with the rest of directives > > } > > > > relaunch the Bokeh app with > > > > --prefix=/bokeh/ > > > > and (if takes part in the url construct

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

2017-05-12 Thread Reinis Rozitis
What I forgot to add you need to change the 'url' (note the domain part) to: url='https://yourdomain/bokeh/' by looking at your error messages it seems that the 'url' is also directly used for client requests (probably placed in the html templated) - which means you can't use plain IP because

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

2017-05-12 Thread Reinis Rozitis
3. in the Flask app, I changed the URL to:url='https://138.197.132.46:5006/bokeh/' Now, when I open the app in the browser I get a 502 Bad Gateway, and the Flask log file says the following: raise IOError("Cannot pull session document because we failed to connect to the server (to start the ser

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

2017-05-12 Thread J K via nginx
> > Message: 2 > Date: Fri, 12 May 2017 13:33:16 +0300 > From: "Reinis Rozitis" > To: > Subject: Re: Reverse-proxying: Flask app with Bokeh server on Nginx > Message-ID: > Content-Type: text/plain; format=flowed; charset="UTF-8"; > reply-type=original > > > I understand that I might have

Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-12 Thread Cumali Ceylan
No it seems good to me. In addition, I tried to install nscd upon a suggestion but it didn't make a difference. I can see that the nscd cahces the user in its log file. On 05/12/2017 05:13 PM, Jared Mulder wrote: are your shell logins slow as well? sometimes PAM behaves like this. Live long

Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-12 Thread Jared Mulder
are your shell logins slow as well? sometimes PAM behaves like this. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Thu, May 11, 2017 at 1:48 PM, Cumali Ceylan wrote: > Hello, > > I built nginx with ngx_

Re: Re: Re: proxy_upstream_next while no live upstreams

2017-05-12 Thread Maxim Dounin
Hello! On Fri, May 12, 2017 at 01:24:14PM +0800, Wu Bingzheng wrote: > > The last request before this 502 request is almost 20 minutes ago and its > response code is 200. > > The proxy_next_upstream conf: > proxy_next_upstream error timeout invalid_header http_502 http_503 > http_504; >

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

2017-05-12 Thread Reinis Rozitis
I understand that I might have to use a method called reverse proxying, which is described here. However, I wasn't able to get it to work. Well you already do this "method called reverse proxying" with the Flask app so you have to do the same with the Bokeh app as all modern/current browsers r

Re: fastcgi cache background update ssi подзапросов

2017-05-12 Thread B.R. via nginx
https://mailman.nginx.org/mailman/listinfo/nginx-ru --- *B. R.* 2017-05-10 19:18 GMT+02:00 Roman Arutyunyan : > Добрый день, > > On Wed, May 10, 2017 at 12:04:39PM -0400, metalfm1 wrote: > > Приветствую! > > > > Директива fastcgi_cache_background_update странно ведёт себя при ssi > > подзапросах.

Reverse-proxying: Flask app with Bokeh server on Nginx

2017-05-12 Thread J K via nginx
I have created a website with Flask that is serving a Bokeh app on a Digital Ocean VPN. Everything worked fine until I secured the server with Let's Encrypt following this tutorial . In step 3