I have (and love) nginx front ends that map users to one of many apache back ends. <br><br>I had php uploads of 2M working. The files were getting posted and all was well. I had a request to increase this to 20M and... it doesn't work.<br>
<br>I see successful posts on the front end (nginx) and back end (apache) AND the php upload folder (/tmp/php_uploads) is touched and updated with the time of the upload. No uploaded temporary file is created. I can change the post/buffer size to/from 2M/20M to make it work/not work. It has to be something obvious (and yes I've checked the back end apache/php to make sure there are no post/upload limits).<br>
<br> location / {<br> proxy_set_header Host $host;<br> proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $remote_addr;<br>
proxy_redirect off;<br> proxy_pass http://$server$request_uri;<br><br> client_max_body_size 8M;<br> client_body_buffer_size 8M;<br><br> proxy_buffering off;<br>
<br> proxy_connect_timeout 60;<br> proxy_send_timeout 300;<br> proxy_read_timeout 120;<br><br> proxy_pass_header Expires;<br> proxy_pass_header Cache-Control;<br>
proxy_pass_header Last-Modified;<br> proxy_pass_header ETag;<br> proxy_pass_header Content-Length;<br> }<br><br>As soon as the file tips over 2M, it fails - which is highly suspicious but I see no defaults that thwart that. Also, a 7MB upload takes about 30s so the send timeout isn't failing.<br>
<br>What am I missing?<br><br>TIA!<br><br>Tony<br>