Re: Reverse Proxy with 500k connections

2017-07-13 Thread foxgab
is upstream keepalive connetions adaptable with websocket? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272808,275486#msg-275486 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream keepalive connections for all servers or each server?

2017-07-13 Thread foxgab
hi, how nginx determines idle connections? is keepalive adaptable with websocket? will "proxy_ignore_client_abort off" setting exclude keepalive function? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274098,275484#msg-275484 ___ nginx mai

Re: FreeBSD Clean Install nginx.pid Permissions Errors

2017-07-13 Thread li...@lazygranch.com
On Thu, 13 Jul 2017 23:46:12 +0100 Francis Daly wrote: > On Thu, Jul 13, 2017 at 09:37:08AM -0400, Viaduct Lists wrote: > > Hi there, > > > [Wed Jul 12 06:08:41 rich@neb /var/log/nginx] nginx -t > > If you were running this command as "root", would that prompt say > "root@neb" and end with a

Re: how nginx deal with gzipped responses when gzip is on

2017-07-13 Thread Zhang Chao
Hi! NGINX will check the Content-Encoding header, so if this header exists, gzip filter will be bypassed. On 14 July 2017 at 02:39:07, foxgab (nginx-fo...@forum.nginx.org) wrote: i configred nginx with gzip directives: http { gzip on; gzip_types text/css application/javascript; gzip_comp_level

Re: FreeBSD Clean Install nginx.pid Permissions Errors

2017-07-13 Thread Viaduct Lists
Hi there. Thanks for the reply. Persistent permissions issues are on other boxes, on OSX as well. But I had some Passenger issues so I’ve moved into another issue. But sudo nginx -t gets rid of the error on nginx.pid That whole user/group issue on the user directive in nginx.conf is confusing

Re: FreeBSD Clean Install nginx.pid Permissions Errors

2017-07-13 Thread Francis Daly
On Thu, Jul 13, 2017 at 09:37:08AM -0400, Viaduct Lists wrote: Hi there, > [Wed Jul 12 06:08:41 rich@neb /var/log/nginx] nginx -t If you were running this command as "root", would that prompt say "root@neb" and end with a # ? > nginx: the configuration file /usr/local/etc/nginx/nginx.conf synta

how nginx deal with gzipped responses when gzip is on

2017-07-13 Thread foxgab
i configred nginx with gzip directives: http { gzipon; gzip_types text/css application/javascript; gzip_comp_level 9; gzip_http_version 1.0; gzip_proxiedany; } some upstream servers have already gzipped the response, i see the lengh of the respense is simil

Re: nginScript question

2017-07-13 Thread aledbf
Thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275459,275477#msg-275477 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Duplicated response body with fastcgi

2017-07-13 Thread Etienne Robillard
Hi, I'm trying to setup a Django app with nginx using fastcgi. Here's my config: # configuration file /etc/nginx/nginx.conf: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 512; multi_accept on; use epoll; } http { ## # Basic Settings

Re: nginx security advisory (CVE-2017-7529)

2017-07-13 Thread Maxim Dounin
Hello! On Wed, Jul 12, 2017 at 09:42:04PM -0400, martinzhou wrote: > Maxim Dounin Wrote: > --- > > Hello! > > > > On Tue, Jul 11, 2017 at 05:45:15PM -0400, c0nw0nk wrote: > > > > > Couldn't you use > > > > > > max_ranges 0; > > > > > > To d

FreeBSD Clean Install nginx.pid Permissions Errors

2017-07-13 Thread Viaduct Lists
Hi folks. Trying to get this FreeBSD nginx installation set up. FreeBSD 11.1-RC1 nginx version: nginx/1.12.0 3 vhosts on this box. nginx.conf tests show the following: [Wed Jul 12 06:08:41 rich@neb /var/log/nginx] nginx -t nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax

Re: Nginx Proxy seems to send twice the same request to the backend

2017-07-13 Thread Maxim Dounin
Hello! On Thu, Jul 13, 2017 at 02:18:34PM +0200, Arnaud Le-roy wrote: > a little question about the error : > > >> 2017/07/09 09:18:31 [error] 38111#38111: *4098505 upstream prematurely > >> closed connection while reading response header from upstream, client: > >> x.x.x.x, server: x.x.com, r

Re: Nginx Proxy seems to send twice the same request to the backend

2017-07-13 Thread Arnaud Le-roy
Thank you very much for you explanation, it is now clear for me ! a little question about the error : >> 2017/07/09 09:18:31 [error] 38111#38111: *4098505 upstream prematurely >> closed connection while reading response header from upstream, client: >> x.x.x.x, server: x.x.com, request: "GET >

Re: nginScript question

2017-07-13 Thread Dmitry Volyntsev
On 12.07.2017 23:57, aledbf wrote: Hi, It is possible to make a HTTP request with nginScript? Hi, Unfortunately, this is not possible so far. But, we are going to add such functionality in the future. You can find what is currently possible here http://nginx.org/en/docs/http/ngx_http_js_

keepalive connections cache between 2 proxy

2017-07-13 Thread foxgab
hello, my app will keep a long connection with server, while server may push message to client, two levels nginx proxy for the upstream servers, does keepalive directive support this model? the documentation of the keepalive directive said: "For HTTP, the proxy_http_version directive should be s

Debug log print and conf

2017-07-13 Thread Myoungho
Hello, Im newbie in nginx module developing and now studying how nginx module works using 'hello_world' module. I have two questions. My nginx.conf is; location ~ ^/test1/.*$ { error_log /usr/local/nginx/logs/error-helloworld.log debug; hello entry1; }