Skip to content

Instantly share code, notes, and snippets.

@ArchieR7
Created May 4, 2017 12:39
Show Gist options
  • Save ArchieR7/778025a686642adb1b234b543d5900bd to your computer and use it in GitHub Desktop.
Save ArchieR7/778025a686642adb1b234b543d5900bd to your computer and use it in GitHub Desktop.
nginx 調整 buffer 以避免 502 bad gateway
http {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 128k;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment