I'm running a Rails 3.2 app on an nginx-unicorn set up and when I try to upload a file (using dropzonejs) that's 1MB or larger I get a "413 Request Entity too large" error. I've tried changing the nginx.conf file to increase:
client_max_body_size 4g;
But after a restart of the server I get the same error while trying to upload a 6.9Mb file.
Google searches seem to point to increasing "client_max_body_size" but it doesn't seem to work.
here is the nginx.conf
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
server{
listen 80;
server_name $host;
client_max_body_size 4g;
client_body_buffer_size 50m;
return 301 https://$server_name$request_uri;
}
I'm at a loss for where to go next. Any help would be appreciated, thanks!