Get current location where the module's working

2015-08-19 Thread Hung Nguyen
Hello, This seems to be a strange question, but I am writing a small module that need to get current location where it’s working, example: location /special { my_module; enable on; } Inside my_module, I want to be able to get location —> will return “/special”. Can we do that

[HTTP/2] Only one cooke gets put in $_COOKIE

2015-08-19 Thread Jonny Barnes
Took me a little while to see why my php app wasn’t working. When multiple cookies are sent by the browser, only one of them is passed to php-fpm in the `$_COOKIE` variable. However it appears that all the cookies are accessible in nginx itself via the `$cookie_NAME` variables. __

Re: [HTTP/2] Only one cooke gets put in $_COOKIE

2015-08-19 Thread Valentin V. Bartenev
On Wednesday 19 August 2015 12:46:08 Jonny Barnes wrote: > Took me a little while to see why my php app wasn’t working. > > When multiple cookies are sent by the browser, only one of them is passed > to php-fpm in the `$_COOKIE` variable. > > However it appears that all the cookies are accessible

Re: HTTP/2: response is not gzip-compressed

2015-08-19 Thread Valentin V. Bartenev
On Monday 17 August 2015 16:24:20 Valentin V. Bartenev wrote: > On Saturday 15 August 2015 08:23:45 Tatsuhiko Kubo wrote: > > Hello. > > > > I have been trying patch.http2-v2_1.9.3.txt. > > A response does not seem to be gzip-compressed even though gzip > > directive is enabled. > [..] > > Thank

Re: [HTTP/2] Only one cooke gets put in $_COOKIE

2015-08-19 Thread Jonny Barnes
This is fixed in v3, thanks On Wed, 19 Aug 2015 at 18:46 Valentin V. Bartenev wrote: > On Wednesday 19 August 2015 12:46:08 Jonny Barnes wrote: > > Took me a little while to see why my php app wasn’t working. > > > > When multiple cookies are sent by the browser, only one of them is passed > > t

Re: HTTP/2: response is not gzip-compressed

2015-08-19 Thread Tatsuhiko Kubo
Hello. 2015-08-20 2:48 GMT+09:00 Valentin V. Bartenev : > You can try the 3rd version of the patch: > http://nginx.org/patches/http2/ Thanks. It works fine! 2015-08-20 2:48 GMT+09:00 Valentin V. Bartenev : > On Monday 17 August 2015 16:24:20 Valentin V. Bartenev wrote: >> On Saturday 15 August