Re: multiple limit_req_zone

2014-09-15 Thread Valentin V. Bartenev
On Monday 15 September 2014 16:05:31 matt_l wrote: > Valentin, > Thank you so much for your example. It definitely helps. > When you say "A client IP address serves as a key. [...]. One megabyte zone > can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte > zone can keep the s

Re: multiple limit_req_zone

2014-09-15 Thread matt_l
Valentin, Thank you so much for your example. It definitely helps. When you say "A client IP address serves as a key. [...]. One megabyte zone can keep about 16 thousand 64-byte states." Does that mean that 1 megabyte zone can keep the state on 16 thousand different sending IP addresses? What abou

Re: Is symmetric routing required for a nginx deployment?

2014-09-15 Thread Bryan Arenal
Thanks, Maxim -- I greatly appreciate your response. On Mon, Sep 15, 2014 at 1:23 PM, Maxim Dounin wrote: > Hello! > > On Mon, Sep 15, 2014 at 09:47:38AM -0600, Bryan Arenal wrote: > > > Hi, > > > > I'm investigating reverse proxy and content caching servers for a > > deployment at work but our

Re: Is symmetric routing required for a nginx deployment?

2014-09-15 Thread Maxim Dounin
Hello! On Mon, Sep 15, 2014 at 09:47:38AM -0600, Bryan Arenal wrote: > Hi, > > I'm investigating reverse proxy and content caching servers for a > deployment at work but our infrastructure is currently asymmetric where the > server would only see the inbound half of the conversation. Does nginx

Max File Size Allowed In Cache

2014-09-15 Thread abstein2
Is there any way to limit the maximum size of an individual object in a proxy cache? Looking through the documentation ( http://nginx.org/en/docs/http/ngx_http_proxy_module.html ) I'm not seeing anything directly related to that. I might be misunderstanding the proxy_temp_file_write_size or proxy_

[ANN] Windows nginx 1.7.5.3 WhiteRabbit

2014-09-15 Thread itpp2012
18:42 15-9-2014 nginx 1.7.5.3 WhiteRabbit Based on nginx 1.7.5 (15-9-2014, last changeset 5834:ca63fc5ed9b1) with; + lua-upstream-nginx-module v0.2 (upgraded 14-9-2014) + echo-nginx-module v0.56 (upgraded 14-9-2014) + nginx-rtmp-module, v1.1.4 (upgraded 14-9-2014) includes https://github.com/aru

Re: Nginx real_ip_recursive

2014-09-15 Thread Maxim Dounin
Hello! On Mon, Sep 15, 2014 at 11:41:49AM -0400, ianjoneill wrote: > Thanks for your explanation. If I were to later add load balancers in front > of my proxy server, would the $remote_addr IP be correct (i.e. the client > IP) or would it be the IP of the load balancer? By default it will be the

Re: Why Nginx Doesn't Implement FastCGI Multiplexing?

2014-09-15 Thread Wter S.
Then how Nginx is able to handle thousands simultaneous requests (where some of them contains blocking IO operations) with only one process (or let say 10 processes) ? Thanks ! Maxim Dounin wrote in post #1157635: > Hello! > > On Sun, Sep 14, 2014 at 09:22:48PM +0200, Wter S. wrote: > > > FastC

Is symmetric routing required for a nginx deployment?

2014-09-15 Thread Bryan Arenal
Hi, I'm investigating reverse proxy and content caching servers for a deployment at work but our infrastructure is currently asymmetric where the server would only see the inbound half of the conversation. Does nginx require symmetric configuration in order to see the three-way handshake and the

Re: Nginx real_ip_recursive

2014-09-15 Thread ianjoneill
Thanks for your explanation. If I were to later add load balancers in front of my proxy server, would the $remote_addr IP be correct (i.e. the client IP) or would it be the IP of the load balancer? Thanks again for your help. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253247,253255

Re: Nginx real_ip_recursive

2014-09-15 Thread Maxim Dounin
Hello! On Mon, Sep 15, 2014 at 09:41:21AM -0400, ianjoneill wrote: > Thanks for your reply. > > If I uncomment that line, the X-Forwarded-For header contains all of the IP > addresses, as shown below: > > $ sudo /usr/sbin/tcpdump -i lo -A -s 0 'tcp port 8080 and ( > ((ip[2:2] - ((ip[0]&0xf)<<2)

Re: Nginx real_ip_recursive

2014-09-15 Thread ianjoneill
Thanks for your reply. If I uncomment that line, the X-Forwarded-For header contains all of the IP addresses, as shown below: $ sudo /usr/sbin/tcpdump -i lo -A -s 0 'tcp port 8080 and ( ((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' tcpdump: verbose output suppressed, use -v or -vv f

Re: nginx chunked transfer encoding, cannot get it to work

2014-09-15 Thread Maxim Dounin
Hello! On Mon, Sep 15, 2014 at 08:08:10AM -0400, nkolev wrote: > How can I get the nginx chunked transfer encoding downlink to work? Chunked transfer encoding is used automatically when needed (and allowed by a protocol used), and automatically decoded when a client or a backend server uses it

Re: Nginx real_ip_recursive

2014-09-15 Thread Maxim Dounin
Hello! On Mon, Sep 15, 2014 at 09:11:37AM -0400, ianjoneill wrote: > Hello, > > I am using nginx to proxy connections to a server I have written in Java, > which serves connections on port 8080. I am trying to use the > X-Forwarded-For header to identify the real IP address of a connection, but

Nginx real_ip_recursive

2014-09-15 Thread ianjoneill
Hello, I am using nginx to proxy connections to a server I have written in Java, which serves connections on port 8080. I am trying to use the X-Forwarded-For header to identify the real IP address of a connection, but I am running into difficulties with the nginx setting real_ip_recursive. My ng

nginx chunked transfer encoding, cannot get it to work

2014-09-15 Thread nkolev
I am using an implemention of nginx with jetty servlets. For the purpose of my project I need to initialize two connection to the jetty servlet and keep them open. To initialize the downlink I use a normal request and I get the inputstream back. To initialize the uplink I use a chunked encoding r

trouble changing uri to query string

2014-09-15 Thread Roland RoLaNd
i have a url looking as such:   mysite.com/some/path/rest/v2/giveit.view&user=282&imageid=23&size=80  i want the cache key to match imageid=23&size=80 without the "user" part. $args isn't matching because incoming url lacks the "?" part, so $uri is detected as mysite.com/some/path/rest/v2/give

Re: 502 errors with nginx and php5-fpm

2014-09-15 Thread Maxim Dounin
Hello! On Thu, Sep 11, 2014 at 04:42:51PM -0400, nfn wrote: > Hi, > > Here is the debug log: http://pastebin.com/raw.php?i=w8Bwj4pS > > Can you help me understand why I have these random 502 error? As previously suggested, there is an error logged at "error" level: 2014/09/09 23:55:59 [error]

Re: Why Nginx Doesn't Implement FastCGI Multiplexing?

2014-09-15 Thread Maxim Dounin
Hello! On Sun, Sep 14, 2014 at 09:22:48PM +0200, Wter S. wrote: > Question about FastCGI: How it handle simultaneous connections with one > process when PHP itself is blocking language ? What if I have something > "sleep(100)" . Wont it block the process for the other users ? > Thanks FastCGI