Jeff Waugh Wrote: ------------------------------------------------------- > G'day, from the author of that patch. :-) Glad to meet you. I just cannot thank you enough for making that great patch. It saved me and my blog network! :-) > Here's the relevant configuration snippet I use: > > location ^~ /blogs.dir { > internal; > alias > /srv/example.com/rby rahul286 - Nginx Mailing List - English
Hi Igor, All doubts are clear now. Thanks. :-)by rahul286 - Nginx Mailing List - English
I am trying to get "X-Accel-Redirect" working on my ngnix and Wordpress MU server. I came across this official wordpress thread - http://trac.mu.wordpress.org/changeset/1946 I followed it. I added codes in blogs.php. I also defined 'WPMU_ACCEL_REDIRECT' as 'true'. After that I ended in 500 errors. :-( Then I found this article written in chinese - http://bit.ly/74uWtM (engby rahul286 - Nginx Mailing List - English
>Yes, a whole 32M response will be in memory, however, I do not think that >is right thing. You should handle the most responses in memory and allow >to use disk for biggest ones: I guess as of now nginx is doing this only. I guess its safe to ignore warnings in error_log. In optimal case, I will find less number of warnings i.e. " upstream response is buffered to a temporary fby rahul286 - Nginx Mailing List - English
By the way if possible can somebody please answer my original question as well.... >if my average response size is 128K and max response size is 32M and I'm on 32-bit platform, >then following must be most optimized configuration - It will use memory efficiently as well as will not generate any warning? >fastcgi_buffer_size 128K >fastcgi_buffers 8192 4k >Am I right? Iby rahul286 - Nginx Mailing List - English
Rob Schultz Wrote: ------------------------------------------------------- > If you have control over the scripts instead of > using the php readfile() function wouldn't it be > better to use nginx's > http://wiki.nginx.org/NginxXSendfile to allow > nginx to serve the files directly without having > to pass them over fastcgi? I did not know about http://wiki.nginx.org/by rahul286 - Nginx Mailing List - English
Thanks Igor for personally responding to my query and of-course for ngnix :-) Now I have few more questions... >> In my ngnix.conf - inside php-fastcgi handler block I have settings... >> fastcgi_buffers 64 4k; >> i.e. 256K buffer size (I am on 32-bit platform). This means that if php scripts generate more than 256K size responses nginx will read first 256K sends it to aby rahul286 - Nginx Mailing List - English
First let me show my understanding of ngnix working till now... In my ngnix.conf - inside php-fastcgi handler block I have settings... fastcgi_buffers 64 4k; i.e. 256K buffer size (I am on 32-bit platform). This means that if php scripts generate more than 256K size responses nginx will read first 256K sends it to a client and empties the buffer's contents. If there's more responce data - itby rahul286 - Nginx Mailing List - English
w3wsrmn Wrote: ------------------------------------------------------- > Howdy, > > A large number of small buffers: > fastcgi_buffers 768 8k > > A small number of large buffers: > fastcgi_buffers 8 768k > > A near balance between the buffers and size: > fastcgi_buffers 64 96k > > > Or does it not matter which method is used? > > Tby rahul286 - Nginx Mailing List - English