Re: Mapping non-empty $query_string

2016-06-14 Thread Igor Sysoev
On 15 Jun 2016, at 02:37, Supersmile2009 wrote: > Hi! > I'm running a Wordpress based website on my server, I've set up fastcgi > cache recently. Now I want to get rid of evil-ifs, that are used to detect > cache skipping cases, and replace them with map. > > I managed to convert all common ifs

Mapping non-empty $query_string

2016-06-14 Thread Supersmile2009
Hi! I'm running a Wordpress based website on my server, I've set up fastcgi cache recently. Now I want to get rid of evil-ifs, that are used to detect cache skipping cases, and replace them with map. I managed to convert all common ifs except this one, if ($query_string != "") { set $skip_ca

Response from proxy server buffered in memory?

2016-06-14 Thread webdel
I configured nginx as reverse proxy to an application server java disabling the proxy buffering: proxy_buffering off; proxy_request_buffering off; I noticed that when a client makes a request to the java server (e.g. download a file), nginx buffered the response in memory (around 3Mb). I would

Re: Drupal 7 and Coldfusion Proxy

2016-06-14 Thread Jeremiah Brock
Thank you for the response Francis. Unfortunately - I don't have the luxury of separating out via a hierarchy. I have determined that what I am wanting to do is just simply not possible : ( . ~Jeremy On Tue, Jun 14, 2016 at 2:59 PM, Francis Daly wrote: > On Tue, Jun 14, 2016 at 08:01:36AM -07

Re: 10054: An existing connection was forcibly closed by the remote host

2016-06-14 Thread Francis Daly
On Tue, Jun 14, 2016 at 09:24:59AM -0400, madvas wrote: Hi there, > 8712#14268: *2060 WSARecv() failed (10054: An existing connection was > forcibly closed by the remote host) while reading response header from > upstream, client:0.xx.xx.0 If that error message is in nginx's error log, it sugge

Re: Drupal 7 and Coldfusion Proxy

2016-06-14 Thread Francis Daly
On Tue, Jun 14, 2016 at 08:01:36AM -0700, Jeremiah Brock wrote: Hi there, > My issue : trying to serve seamless paths for both Drupal and > ColdFusion without having to specify every possible path that coldfusion > applications exist in. You may find it easiest to have a simple split in your

Re: REST URLs and NGINX (config help needed)

2016-06-14 Thread Edho Arief
Hi On Wed, Jun 15, 2016, at 02:28, Ben wrote: > Hi, > > Based on scraps found in the NGINX docs, I have a semi-working config > that looks as follows : > > # > location /demo { > allow 10.0.0.0/8; > deny all; > try_files $uri @pdemo; > }

REST URLs and NGINX (config help needed)

2016-06-14 Thread Ben
Hi, Based on scraps found in the NGINX docs, I have a semi-working config that looks as follows : # location /demo { allow 10.0.0.0/8; deny all; try_files $uri @pdemo; } location @pdemo { fastcgi_param

Drupal 7 and Coldfusion Proxy

2016-06-14 Thread Jeremiah Brock
Good morning everyone! I have an issue that I am hoping is just a simple error on my part and the collective wisdom of the gurus here might solve it. My setup : RHEL 7, Nginx 1.10, PHP 7 and Drupal 7 My issue : trying to serve seamless paths for both Drupal and ColdFusion without hav

Re: error log truncates important infos

2016-06-14 Thread Maxim Dounin
Hello! On Tue, Jun 14, 2016 at 10:44:32AM -0400, philipp wrote: [...] > Sometimes we see erros like this: [...] > It looks like they are truncated. We miss a lot of important information > like client ip and so on. Is this a known limitation or bug in nginx? This is a known limitation. To al

Re: error log truncates important infos

2016-06-14 Thread Robert Paprocki
Error logs have a hard coded length limit of 2048 bytes iirc, to prevent runaway log entries. You might be better off configuring your app to dump stack traces instead of relying on a proxy. > On Jun 14, 2016, at 07:44, philipp wrote: > > We have error logs like this: > > 2016/06/14 12:47:45

error log truncates important infos

2016-06-14 Thread philipp
We have error logs like this: 2016/06/14 12:47:45 [error] 21036#21036: *378143 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: model_name in /data/example.com/module/SalesFloor/view/partial/flyout/product.phtml on line 20 PHP message: PHP Notice: Undefined index: model_name in

Re: ssl session id and spdy/http2 traffic

2016-06-14 Thread Maxim Dounin
Hello! On Mon, Jun 13, 2016 at 03:00:16AM -0400, gitl wrote: > I have noticed that the variables ssl_session_id and ssl_session_reused are > always empty for http2 traffic (and for spdy before that). Under http 1.1 > they are set as expected and documented. > What's the reason for this? Why not l

10054: An existing connection was forcibly closed by the remote host

2016-06-14 Thread madvas
8712#14268: *2060 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client:0.xx.xx.0 Can any one help me on this please. I have site A , site B. Site B is front end with nginx... I am getting this error 10/3 tim

Re: nginx big bug

2016-06-14 Thread madvas
8712#14268: *2060 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client:0.xx.xx.0 Can any one help me on this. I have site A , site B. Site B is front end with nginx... I am getting this error 10/3 times of requ

Re: Trying to Understand Upstream Keepalive

2016-06-14 Thread Valentin V. Bartenev
On Tuesday 14 June 2016 04:09:06 aanchalj wrote: > As stated in > http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive that > "It should be particularly noted that the keepalive directive does not limit > the total number of connections to upstream servers that an nginx worker > pr

Re: Cant load perl module

2016-06-14 Thread Azfar Hashmi
Thank you. got it working. On Tue, Jun 14, 2016 at 2:55 PM, Yuriy Medvedev wrote: > --with-http_perl_module=dynamic > > You must include dynamic module in nginx main config file. Use load_module > > > 2016-06-14 13:34 GMT+03:00 Azfar Hashmi : > >> Below is the output of nginx -V >> >> >> nginx v

Re: Cant load perl module

2016-06-14 Thread Yuriy Medvedev
> > --with-http_perl_module=dynamic You must include dynamic module in nginx main config file. Use load_module 2016-06-14 13:34 GMT+03:00 Azfar Hashmi : > Below is the output of nginx -V > > > nginx version: nginx/1.10.1 > built with OpenSSL 1.0.1k 8 Jan 2015 (running with OpenSSL 1.0.1t 3 May

Re: Cant load perl module

2016-06-14 Thread Azfar Hashmi
Below is the output of nginx -V nginx version: nginx/1.10.1 built with OpenSSL 1.0.1k 8 Jan 2015 (running with OpenSSL 1.0.1t 3 May 2016) TLS SNI support enabled configure arguments: --add-module=/usr/src/builddir/debian/modules/naxsi/naxsi_src --with-cc-opt='-g -O2 -fstack-protector-strong -Wfo

Re: Cant load perl module

2016-06-14 Thread Yuriy Medvedev
Hi, please show output nginx -V 14 июня 2016 г. 12:32 пользователь "Azfar Hashmi" написал: Hi, I just upgraded nginx to 1.10.1 but I am getting below error. nginx: [emerg] unknown directive "perl_modules" in /etc/nginx/nginx.conf:90 My package is already compiled with perl (nginx -V), I am on

Cant load perl module

2016-06-14 Thread Azfar Hashmi
Hi, I just upgraded nginx to 1.10.1 but I am getting below error. nginx: [emerg] unknown directive "perl_modules" in /etc/nginx/nginx.conf:90 My package is already compiled with perl (nginx -V), I am on Wheezy and using dotdeb. ___ nginx mailing list n

Re: Trying to Understand Upstream Keepalive

2016-06-14 Thread aanchalj
As stated in http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive that "It should be particularly noted that the keepalive directive does not limit the total number of connections to upstream servers that an nginx worker process can open. The connections parameter should be set to

Re: worker_connections are not enough

2016-06-14 Thread aanchalj
So in this case the worker_connections should be set to at least (2 + 4 + 4) = 10. But what should be the optimal value for this? What are the implications of using a high number of worker connections in this case? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,226691,267552#msg-26755