Skip to content

Instantly share code, notes, and snippets.

@Irvyne
Last active August 29, 2015 14:05
Show Gist options
  • Save Irvyne/2e76687d93112472d99c to your computer and use it in GitHub Desktop.
Save Irvyne/2e76687d93112472d99c to your computer and use it in GitHub Desktop.
Nginx configuration to deal with Symfony2 (/etc/nginx/nginx.conf && /etc/nginx/fastcgi_params)

/etc/nginx/nginx.conf

#include /etc/nginx/naxsi_core.rules;
...
##
# Proxy Buffer
##
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
...
##
# Virtual Host Configs
##

/etc/nginx/fastcgi_params

...
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment