# How to turn off fastcgi\_buffer

**URL:** <https://www.ruby-forum.com/t/how-to-turn-off-fastcgi-buffer/206159>\
**Category:** NGINX\
**Created:** [April 24, 2011, 12:37pm UTC](https://www.ruby-forum.com/t/how-to-turn-off-fastcgi-buffer/206159 "2011-04-24T12:37:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [April 24, 2011, 12:37pm UTC](https://www.ruby-forum.com/t/how-to-turn-off-fastcgi-buffer/206159/1 "2011-04-24T12:37:10Z")

</div>

thx in advance first.

i need to turn off the fastcgi\_buffer so that my php application could  
flush content directly to the client. i googled this topic but nothing  
really meanning for.  
i tried to set fastcgi\_buffer\_size to 0, or very small like 10, which  
led to an access error.  
is there any way that i can turn off the fastcgi buffer functionality so  
that i can write directly to the client, like apache did?

thx again

Posted at Nginx Forum:

> **[how to turn off fastcgi\_buffer](https://forum.nginx.org/read.php?2,193321,193321#msg-193321)**
>
> thx in advance first. i need to turn off the fastcgi\_buffer so that my php application could flush content directly to the client. i googled this topic but nothing really meanning for. i tried to set fastcgi\_buffer\_size to 0, or very small like 10,...

---

<div class="post-metadata">

**Author:** ![jpu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jpu](https://www.ruby-forum.com/u/jpu)\
**Post date:** [April 24, 2011, 4:52pm UTC](https://www.ruby-forum.com/t/how-to-turn-off-fastcgi-buffer/206159/2 "2011-04-24T16:52:11Z")

</div>

having fastcgi\_buffers 0 0 and fastcgi\_max\_temp\_file\_size 0 should make  
nginx not buffer. I say in theory because I have no idea whether  
fastcgi\_buffers can actually be set to zero.

Posted at Nginx Forum:

> **[Re: how to turn off fastcgi\_buffer](https://forum.nginx.org/read.php?2,193321,193349#msg-193349)**
>
> thx in advance first. i need to turn off the fastcgi\_buffer so that my php application could flush content directly to the client. i googled this topic but nothing really meanning for. i tried to set fastcgi\_buffer\_size to 0, or very small like 10,...
