Optimal nginx settings for websockets sending images

2013-02-25 Thread michael.heuberger
Hello guys The recent nginx 1.3.13 websocket support is fantastic! Big thanks to the nginx devs, it works like a charm. I only have performance issues. Sending images through websockets turns out to be difficult and slow. I have a website sending 5 images per seconds to the server. Sometimes I h

Re: Problem with proxy_set_header $ssl_client_cert

2013-02-25 Thread jstrybis
Thanks for your reply. My application does not require the entire certificate, so I am just forwarding $ssl_client_s_dn in a custom header without any problems. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236546,236599#msg-236599 ___ nginx

Re: How to remove the "IF" in this fcgi config

2013-02-25 Thread Ed W
On 24/02/2013 19:40, Christoph Schug wrote: On 2013-02-22 23:05, Valentin V. Bartenev wrote: IMHO, location ~ ^(?.+\.php)(?/.*)?$ { looks better. In order to put yet another iteration into the game, I prefer the script_name part to be non-greedy location ~ ^(?.+?\.php)(?/.*)?$ { O

Re: Problem with proxy_set_header $ssl_client_cert

2013-02-25 Thread Sergey Budnevitch
On 25 Feb2013, at 18:37 , Lynoure wrote: >> The $ssl_client_cert variable abuses header continuation, and this >> doesn't work with many http servers (including nginx itself). > > Noticed that with spray-can. > >> There should be more portable way to pass client certificate to an >> upstream

split-clients for vhosts how?

2013-02-25 Thread Varix
Hallo, what is the right way to use the Module ngx_http_split_clients_module with some vhosts? Varix Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236593,236593#msg-236593 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mai

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread agentzh
Hello! On Mon, Feb 25, 2013 at 12:56 AM, Mauro Stettler wrote: > Thanks, that would probably be possible. > > It's just that this URL is called very frequently, so I'm trying to do > everything as resource efficient as possible. I am worried that parsing the > json in lua in Nginx and reformatting

Re: Default error_page for multiple vhosts

2013-02-25 Thread Alexander Nestorov
Gregory, hi, I tested your config and it's working, but that's even more complex than just writing the error_page in each server{}. Thank you for you help anyways :) Francis, I filled a feature request (#307), let's see what happens Regards! -- alexandernst

Re: proxy_temp_path is very slow

2013-02-25 Thread Jonathan Matthews
On 25 February 2013 14:07, Indo Php wrote: > Hello, > > I'm using proxy_cache with nginx. I have nginx set as proxy cache to get the > file from servers in onother country. > > Sometimes I have almost 3000 files in the temp path, and my disk I/O is very > high. Actually I'm using 2 SSD with RAID-0

Re: Problem with proxy_set_header $ssl_client_cert

2013-02-25 Thread Lynoure
> The $ssl_client_cert variable abuses header continuation, and this > doesn't work with many http servers (including nginx itself). Noticed that with spray-can. > There should be more portable way to pass client certificate to an > upstream server. Is there already, or is there one in plans? A

proxy_temp_path is very slow

2013-02-25 Thread Indo Php
Hello, I'm using proxy_cache with nginx. I have nginx set as proxy cache to get the file from servers in onother country. Sometimes I have almost 3000 files in the temp path, and my disk I/O is very high. Actually I'm using 2 SSD with RAID-0. May I know is there any other problems? Here's my c

Re: Proxy without buffering

2013-02-25 Thread double
Thanks a lot! > Also it'd be very nice to get this feature to standard nginx, > many people need it! 100% true. I hate this workaround via "haproxy" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236568,236576#msg-236576 ___ nginx mailing l

Re: Proxy without buffering

2013-02-25 Thread Pasi Kärkkäinen
On Mon, Feb 25, 2013 at 04:39:53AM -0500, double wrote: > Hello, > > Large POST-request are buffered to disk, before passed to the backend. > The backend has troubles to parse the POST-data, if the requests are huge > (some GB). > > We use "haproxy" in front of "nginx", to workaround this issue.

Re: Is it possible that nginx will not buffer the client body?

2013-02-25 Thread Pasi Kärkkäinen
On Mon, Feb 25, 2013 at 10:13:42AM +0800, Weibin Yao wrote: >Can you show me your configure? It works for me with nginx-1.2.7. >Thanks. > Hi, I'm using the nginx 1.2.7 el6 src.rpm rebuilt with "headers more" module added, and your patch. I'm using the following configuration: server {

Proxy without buffering

2013-02-25 Thread double
Hello, Large POST-request are buffered to disk, before passed to the backend. The backend has troubles to parse the POST-data, if the requests are huge (some GB). We use "haproxy" in front of "nginx", to workaround this issue. But this causes extra load on the server. Is there a chance to disable

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread Mauro Stettler
Thanks, that would probably be possible. It's just that this URL is called very frequently, so I'm trying to do everything as resource efficient as possible. I am worried that parsing the json in lua in Nginx and reformatting it would be too heavy on the server load. So I would have preferred if t

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread smallfish
can use ngx_lua(openresty), filter/format the output. -- smallfish http://chenxiaoyu.org On Mon, Feb 25, 2013 at 4:04 PM, replay wrote: > I just realized that I messed up the formatting. Actually what I'm looking > for should be like this: > > { > > 1971:{"nickname":"Robby1","age":28,"age_p":42

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread replay
I just realized that I messed up the formatting. Actually what I'm looking for should be like this: { 1971:{"nickname":"Robby1","age":28,"age_p":42,"city":"Dresden","plz":"","wio_plz":"2,4,5","gender":"m"}, 1972:{"nickname":"Robby2","age":29,"age_p":43,"city":"Dresden2","plz":"","wio_plz":"4,5","g