Project

General

Profile

file upload --> Request Entity Too Large

Added by pinkfigaro pinkfigaro almost 4 years ago

(1)https://xxxxxxx:8443 (apache ReverseProxy) --> (2)http://localhost:3000(Passenger nginx)

(1) httpd.conf
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
RequestHeader set X-Forwarded-Proto 'https'

(2) nginx.conf
server{
...
client_max_body_size 20m;
...
}

directly access (2) , can upload big size file
but, access (1) , can't upload big size file , small size file can't upload too.(Request Entity Too Large)
No have any other problems.

what's wrong with my configurations...