How to set up MOD_REQTIMEOUT?

Back

In order to be able to set up MOD_REQTIMEOUT, please make sure you have installed Apache, as well as configured the Firewall. Then, follow these steps:

Check whether you have the latest version of Apache installed:

yum update httpd

Open the the main Apache configuration file htpd.conf:

vim /etc/httpd/conf/httpd.conf

Scroll down to the LoadModule section and add this line:

LoadModule reqtimeout_module modules/mod_reqtimeout.so

Create a new configuration file:

  /etc/httpd/conf.d/reqtimeout.conf

Open the file and enter the following:

RequestReadTimeout header=10-20,minrate=500 RequestReadTimeout body=10,minrate=500

To check if the Apache module is loaded, issue the following command:

apachectl -M