If the Apache Error Log file displays the following error (debug mode), may need to change the timeout values within the Apache’s reqtimeout module located in /etc/apache2/mods-enabled (Debian/Ubuntu). Restart the Apache service when modified.
[Fri Feb 17 18:06:34 2012] [info] [client IP] Request header read timeout
[Fri Feb 17 18:07:49 2012] [info] [client IP] Request body read timeout
Examples
- Allow 10 seconds to receive the request including the headers and 30 seconds for receiving the request body:
RequestReadTimeout header=10 body=30
- Allow at least 10 seconds to receive the request body. If the client sends data, increase the timeout by 1 second for every 1000 bytes received, with no upper limit for the timeout (exept for the limit given indirectly by
LimitRequestBody
):RequestReadTimeout body=10,MinRate=1000
- Allow at least 10 seconds to receive the request including the headers. If the client sends data, increase the timeout by 1 second for every 500 bytes received. But do not allow more than 30 seconds for the request including the headers:
RequestReadTimeout header=10-30,MinRate=500
- Usually, a server should have both header and body timeouts configured. If a common configuration is used for http and https virtual hosts, the timeouts should not be set too low:
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500