Re: Enabling both gzip & brotli

2017-11-10 Thread Dewangga Bachrul Alam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello! On 11/10/2017 11:36 PM, rihad wrote: > Hello. Can I enable both brotli & gzip? Yeah sure, I was test it using this module https://github.com/google/ngx_brotli > brotli on; gzip on; > > with the idea to support both newer & older clients, b

Re: Enabling both gzip & brotli

2017-11-10 Thread shiz
Yes, but I prefer to generate the *.br first and use brotli_static on; instead The browser will happily download the *.br if supported; otherwise gzip will be selected. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277282,277284#msg-277284 ___

Enabling both gzip & brotli

2017-11-10 Thread rihad
Hello. Can I enable both brotli & gzip? brotli on; gzip on; with the idea to support both newer & older clients, but still not do any kind of double compression. Thanks. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277282,277282#msg-277282 __

RE: NGINX lifecycle

2017-11-10 Thread Nelson, Erik - 2 via nginx
> On Thu, Nov 09, 2017 at 03:17:36PM -0600, Joel Parker wrote: > > > I want to load a table of key/value pairs from the file system when nginx > > starts and not every time a request comes in. I am going to use the > > key/value pairs to compare against incoming post args in my location block. > >

Re: Regex on Variable ($servername)

2017-11-10 Thread Francis Daly
On Fri, Nov 10, 2017 at 12:02:28PM +0100, basti wrote: Hi there, > the Problem are "multiple" subs. > > When I use your example i get > > curl -H Host:foo.www.example.com http://localhost/ > domain is foo.www.example.com Yes - the example config you gave very specifically ignores "www." at the

Re: Does anyone know how to configure the session inactivity timeout in Nginx ?

2017-11-10 Thread Peter Booth
This is true in general, but with a single exception that I know of. It’s common for nginx to proxy requests to a Rails app or Java app on an app server and for the app server to implement the session logic This is an open-resty session implementation that sits within the nginx process. https:/

Re: NGINX lifecycle

2017-11-10 Thread Maxim Dounin
Hello! On Thu, Nov 09, 2017 at 03:17:36PM -0600, Joel Parker wrote: > I want to load a table of key/value pairs from the file system when nginx > starts and not every time a request comes in. I am going to use the > key/value pairs to compare against incoming post args in my location block. > >

Re: Regex on Variable ($servername)

2017-11-10 Thread basti
Hello, the Problem are "multiple" subs. When I use your example i get curl -H Host:foo.www.example.com http://localhost/ domain is foo.www.example.com But I need example.com like here https://regex101.com/r/9h3D77/1 Best Regards On 10.11.2017 09:19, Francis Daly wrote: > On Sun, Oct 29, 2017

Re: The "worker process is shutting down" is running all the time, How should I do?

2017-11-10 Thread Vis Lee
The nginx will add timer, the handler is as follows. The c[i].read->handler is not processing the 'close' and 'error' flag? ``` static void ngx_shutdown_timer_handler(ngx_event_t *ev) { ngx_uint_t i; ngx_cycle_t *cycle; ngx_connection_t *c; cycle = ev->data; c

The "worker process is shutting down" is running all the time, How should I do?

2017-11-10 Thread Vis Lee
Hi, The nginx is http proxy. when I use upgrade websocket and send heartbeat per 5s(client_body_timeout 6s;) the directives "worker_shutdown_timeout" is invalid, the "worker process is shutting down" produced by nginx -s reload is running all the time. How should I do? Regards, leevis

Re: Regex on Variable ($servername)

2017-11-10 Thread Francis Daly
On Sun, Oct 29, 2017 at 11:53:23AM +0100, basti wrote: Hi there, > In this example from nginx docs domain has "fullname". > > server { >     server_name ~^(www\.)?(*?*.+)$; >     root /sites/*$domain*; > } When I use the config server { server_name ~^(www\.)?(?.+)$; return 200 "domain

Re: Does anyone know how to configure the session inactivity timeout in Nginx ?

2017-11-10 Thread Francis Daly
On Wed, Nov 08, 2017 at 11:51:36AM -0500, keyun89 wrote: Hi there, > Does anyone know how to configure the session inactivity timeout in Nginx ? There probably isn't a session inactivity timeout in nginx. There probably is the idea of a session in whatever (dynamic?) thing you are using to deal