I am receiving a "Bad Gateway The proxy server received an invalid response from an upstream server" error while trying to upload a 20MB file.
The problem starts in pre-production when I access the page via Apache. Any file over 10MB gives the above error. The Apache and JBOSS are configured via MOD_JK.
There is nothing in the Apache Log whereas in the JBOSS log there is an error "org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. UT000020: Connection terminated as request was larger than 10485760"
If I access the JBOSS directly bypassing Apache web server, the file is uploaded successfully. I changed the maxpostsize in the JBOSS undertow subsystem which made is possible to load via JBOSS.
I wanted to know what is the equivalent of "maxpostsize" directive in Apache Web server? There is some default configuration limiting the file upload size to 10MB in Apache. I just want to increase that limit.
Any help would be appreciated.
Regards,