Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dodyagung/ad2d53b2e339e4547384ec15ca29b25c to your computer and use it in GitHub Desktop.
Save dodyagung/ad2d53b2e339e4547384ec15ca29b25c to your computer and use it in GitHub Desktop.
Add this to your http {} of the nginx.conf file normally located at /etc/nginx/nginx.conf:
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
Then add this to your php location block, this will be located in your vhost file look for the block that begins with location ~ .php$ {
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
Source : https://stackoverflow.com/a/13896157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment