When NGINX works as reverse proxy, I try to upload about 300M file to
the
backend webserver, I failed.
I change the entry “client_max_body_size 300m” in nginx.conf, but I
still
fail.
It seems that the file is cached by nginx,then re-transmit to
backend.
If I want to upload 1GB size file and there is no enough memory in
reverse-server, it is fail also?
When NGINX works as reverse proxy, I try to upload about 300M file to
the backend webserver, I failed.
I change the entry “client_max_body_size 300m” in nginx.conf, but I
still fail.
What’s the error.log show?
It seems that the file is cached by nginx,then re-transmit to backend.
If I want to upload 1GB size file and there is no enough memory in
reverse-server, it is fail also?
No, If there is not enough memory, Nginx will save it to a temporary
file in the disk. After file uploading completed, Then it will send this
static temporary file to backend.
nginx mailing list [email protected] nginx Info Page
No, it doesn’t seem so. upload module is especially designed for
Regards,
file. In that case, it was just a matter of upping Apache’s timeout.
In my case, yes. I usually have the upload buffer set to a couple
hundred meg and slower clients wouldn’t hit either the end of the
upload or the buffer limit before Apache had timed out the connection
from nginx. If you’re not buffering though, then probably not relevant
to your issue.
When I’ve run into this type of issue, usually it’s due to the backend
(Apache in my case) not seeing any activity over the connection that
nginx has made with it, while nginx is buffering the upload to a temp
file. In that case, it was just a matter of upping Apache’s timeout.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.