ngx_http_sub_module causes requests to hang on a simple match.

2017-06-30 Thread ptcell
I've built with the sub filter enabled and I'm finding it hangs requests if there is a match. It is a very simple substitution/replace. I've resorted to following the request in GDB and the sub module completes and calls the next body filter (which in my case appears to be the charset module).

Re: rewrite with regex to use proxy_pass

2017-06-30 Thread Wandenberg Peixoto
If I'm not wrong the rewrite is applied only for the path, not for querystring. To parse the arguments using a regex use a map with $args as input or use the $arg_ARGNAME to the rewrite. On Jun 30, 2017 20:49, "Alexandre" wrote: > Do you have solutions for my problem ? > > Thank you very much. >

Re: rewrite with regex to use proxy_pass

2017-06-30 Thread Alexandre
Do you have solutions for my problem ? Thank you very much. On Fri, 30 Jun 2017 08:18:50 +0200 Alexandre wrote: > Hello, > > I have a question, I wish I could parser a url and retrieve fields to > inject them to another server. > > However, I can not. Here is my test: > > URL : > http://myw

Re: Proxy_cache_key based on custom header

2017-06-30 Thread Peter Booth
I had best caching experience when I started using the openresty nginx bundle. It's a build of nginx that contains a bunch of Lua modules that make it a lean application server. With that I could create cache keys that exactly matched my (complex) business requirements Sent from my iPhone > O

Re: Strange issue after nginx update

2017-06-30 Thread Francis Daly
On Fri, Jun 30, 2017 at 04:10:32PM +0200, Andrea Soracchi wrote: Hi there, you suggest that with the old unknown version of nginx and the old unknown version of php, things worked. Now with the new updated version of nginx and the new updated version of php, things fail. And with the same updat

Re: Proxy_cache_key based on custom header

2017-06-30 Thread Francis Daly
On Tue, Jun 27, 2017 at 05:43:22PM -0400, deivid__ wrote: Hi there, You will probably change your setup so that the default proxy_cache_key works for you; but for information: > If `proxy_cache` is set to `$sent_http_x_test_header`: > - Every request gets cached (good) > - All URLs map to the sa

Re: Strange issue after nginx update

2017-06-30 Thread Andrea Soracchi
Hi, same configuration with php7.1-fpm no problem, no delay with post!!! My application doesn't work with php7.1, I'm very very desolated. Any other idea? ANDREA SORACCHI +39 329 0512704 System Engineer +39 0521 24 77 91 sorac...@netbuilder.it - Original Message - From

Re: Strange issue after nginx update

2017-06-30 Thread Andrea Soracchi
Hi Richard, I have enabled the slowlog but nothing is written in the log. When nginx successfully transfers to php-fpm, execution of the latter is fast. Another log? ANDREA SORACCHI +39 329 0512704 System Engineer +39 0521 24 77 91 sorac...@netbuilder.it - Original Message -