Apache responding with Request Entity Too Large

apache-2.2

My apache server sends a "Request Entity too Large" error, when I am trying to upload a file. This happens when the actual "post body" is sent by the client after about 10 seconds of sending the "request header". Is there any way to disable this on Apache.

Best Answer

There's a method using mod_security, assuming you don't mind making it much larger:

You can also limit the size of the HTTP request body data. This is very handy for disabling large data in HTTP POST requests.

SecRequestBodyLimit 10485760

This is probably worth a read about any consequences of such a change: Mod Security HOWTO

Related Topic