How to install/configure mod_reqtimeout in Apache
It's a standard Apache module from 2.2.15 and later, but is apparently missing in some distro versions (e.g. Ubuntu, FreeBSD).
First, check that mod_reqtimeout
exists (e.g. look in apache2/modules/
or - depending on your system - do something like /usr/sbin/httpd -l | grep mod_reqtimeout
). Second, if it is, make sure it's enabled in your Apache config.
mod_reqtimeout
is available from GitHub (also see the RPM resource). Finally, this thread has some useful tips. BTW FYI I don't think it can be enabled in an .htaccess file.
Related videos on Youtube
Riju Mahna
Working as a Technical Lead in LnT Infotech. Learning Java for almost 9 years now....and will continue to do so...as there is no end in sight, yet !!!
Updated on June 04, 2022Comments
-
Riju Mahna almost 2 years
I need to configure mod_reqtimeout in my Apache server v2.2.22 (in a linux machine). Problem is, I have absolutely no clue on how to do it.
I checked the Apache site on this module at this link but there was no download/configuration details given. Can someone help me on this ? Any help is much appreciated. Basically,
Is there something needed to download ? If not, which files do I need to edit and how?
-
Dave Everitt about 11 yearsNeeds to go on serverFault?
-
-
Riju Mahna about 11 yearsmany thanks. I do find the mod_reqtimeout in the module directory. But where do I make the changes to enable it ? in httpd.conf ?
-
Dave Everitt about 11 yearsYes, check the Apache config file to ensure that it is enabled: look for something like
--enable-reqtimeout
-
Riju Mahna about 11 yearsThere is no entry for 'reqtimeout' in the httpd.conf file . Also, the module file is not a '.c' file but a '.so' file. Will I need to install it or something ?
-
Dave Everitt about 11 yearstry adding the required entry to
httpd.config
and check for errors... but take a look to see if it's in your Apache install'smods-available
dir. -
Dave Everitt about 11 yearsPS Apache will load .so modules on restart: httpd.apache.org/docs/2.2/mod/mod_so.html - also try Apache's
enmod
command if it's inmods-available
but notmods-enabled
.