a rails3.2.18 application via passenger and nginx is generating in nginx log as follows: 2014/10/20 00:31:36 [error] 85#0: *32 client intended to send too large body: 4066821 bytes, client: XX.XXX.XX.XXX, server: app3.iwant2go2.com, request: "POST /bozzadocuments/1 HTTP/1.1", host: "app3.iwant2go2.com", referrer: "http://app3.iwant2go2.com/bozzadocuments/1/edit"
The error is immediately registered after submission in the log, but the browser is getting a response between 15 and 30 seconds later.
the /usr/local/etc/nginx/nginx.conf
file (OSX 10.6) has been edited to allow ample body_size
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
client_body_in_file_only clean;
client_body_buffer_size 32k;
client_max_body_size 200m;
sendfile on;
#keepalive_timeout 0;
keepalive_timeout 65;
send_timeout 300s;
#gzip on;
# Phusion Passenger config
passenger_root /usr/local/opt/passenger/libexec/lib/phusion_passenger/locations.ini;
passenger_ruby /Users/jeromepmmfcamus/.rvm/rubies/ruby-1.9.3-p547/bin/ruby;
}
}
Where is this configuration going wrong?