502 Bad Gateway

Hello,
For my web-app sometime I need to upload several files (can be more than 100 with a total amount of 150 Mbyte). After several session I end up with the 502 Bad Gateway message within my fileInput widget.
No messages inside the logfile.
This is a typical message related to a problem in the webserver.
Is there any optimal parameter setting to fix this problem?
Thanks