Re: using uninitialized "pat" variable while logging request

2013-11-15 Thread Toni Mueller
Hi, On Sat, Nov 16, 2013 at 04:07:19AM +0400, Valentin V. Bartenev wrote: > The "set" directive isn't something essential, and actually it is just a > directive from the rewrite module. > See here how it works: > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html > It is evaluated on t

Re: using uninitialized "pat" variable while logging request

2013-11-15 Thread Valentin V. Bartenev
On Saturday 16 November 2013 02:24:43 Toni Mueller wrote: > Hi, > > to debug my locations, I have a variable in my configuration that I > reference during logging. The log format, included from nginx.conf: > > log_format mylogformat '$remote_addr - $remote_user [$time_local] $request > ' '"$stat

Re: Random 502 bad gateway with php-fpm, why?

2013-11-15 Thread Toni Mueller
On Fri, Nov 15, 2013 at 05:58:41PM -0500, justin wrote: > Can you link to the stackoverflow posts? I wish php-fpm told me what > happened. See, my memory. =8-(( It was this link that helped me most: http://forum.nginx.org/read.php?11,215606,235395 Cheers, --Toni++

Re: Random 502 bad gateway with php-fpm, why?

2013-11-15 Thread justin
Hey Tony. Can you link to the stackoverflow posts? I wish php-fpm told me what happened. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244669,244724#msg-244724 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

Re: Random 502 bad gateway with php-fpm, why?

2013-11-15 Thread Toni Mueller
On Thu, Nov 14, 2013 at 01:13:08PM -0500, justin wrote: > My PHP application went down for a few hours with 502 bad gateway. In the > nginx error log all I see is: > > 2013/11/14 10:02:16 [error] 1466#0: *57964 recv() failed (104: Connection > reset by peer) while reading response header from ups

using uninitialized "pat" variable while logging request

2013-11-15 Thread Toni Mueller
Hi, to debug my locations, I have a variable in my configuration that I reference during logging. The log format, included from nginx.conf: log_format mylogformat '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" '

Re: Queries in NGINX proxy features

2013-11-15 Thread sv
One of the things that I did was to use unix sockets to the backend. On 11/15/2013 12:33 PM, Anamitra Dutta Majumdar (anmajumd) wrote: > We are designing a deployment were NGINX front ends all incoming https > connection and then forwards it to multiple web containers like > Tomcat and Node.js

Queries in NGINX proxy features

2013-11-15 Thread Anamitra Dutta Majumdar (anmajumd)
We are designing a deployment were NGINX front ends all incoming https connection and then forwards it to multiple web containers like Tomcat and Node.js which listen on internal ports on 127.0.0.1. I have some questions here 1. Is it possible to route Outbound connection through NGINX as wel

Re: ip_hash detailed behaviour

2013-11-15 Thread Maxim Dounin
Hello! On Fri, Nov 15, 2013 at 03:13:44PM -0200, Martin Loy wrote: > Hello > > I would like to know more about the behaviour of ip_hash when NGINX is > reloaded and in the scenario of removing an upstream node. > > Is ip_hash somehow clever/sticky and would reasign the IPs to the same node > af

ip_hash detailed behaviour

2013-11-15 Thread Martin Loy
Hello I would like to know more about the behaviour of ip_hash when NGINX is reloaded and in the scenario of removing an upstream node. Is ip_hash somehow clever/sticky and would reasign the IPs to the same node after a reload or restart? and what would happen if an upstream node is marked/flagge

Re: NGINX 500 http error

2013-11-15 Thread fatine,al
OK. I will upgrade nginx and tell you if the problem is solved. Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244693,244709#msg-244709 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: NGINX 500 http error

2013-11-15 Thread Maxim Dounin
Hello! On Fri, Nov 15, 2013 at 07:00:02AM -0500, fatine,al wrote: > Hi, > > Thank you for your quick response. > > Here is the output of nginx -V : > > nginx version: nginx/1.2.1 > TLS SNI support enabled > configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf > --error-l

Re: NGINX 500 http error

2013-11-15 Thread fatine,al
Hi, Thank you for your quick response. Here is the output of nginx -V : nginx version: nginx/1.2.1 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http

Re: NGINX 500 http error

2013-11-15 Thread Maxim Dounin
Hello! On Fri, Nov 15, 2013 at 05:51:16AM -0500, fatine,al wrote: > Hi, > > I have a lot of 500 http error in nginx access.log. > I think it's due to the number of requests that nginx receives. Because when > I was testing the configuration with one ip adress I don't have this error > but when I

NGINX 500 http error

2013-11-15 Thread fatine,al
Hi, I have a lot of 500 http error in nginx access.log. I think it's due to the number of requests that nginx receives. Because when I was testing the configuration with one ip adress I don't have this error but when I redirect all client traffic (sometimes more than 2000 simultaneous connexions)

Re: Proxy buffering

2013-11-15 Thread Maxim Dounin
Hello! On Thu, Nov 14, 2013 at 10:37:03PM -0600, Andrew Tynefield wrote: > I've configured nginx as a load balancing proxy for my backend servers. My > backend is expecting multi-part uploads for large files in small chunks > (5-15mb). The issue I'm encountering, is that I would like for nginx to