How to install/configure mod_reqtimeout in Apache

14,886

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.

Share:
14,886

Related videos on Youtube

Riju Mahna
Author by

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, 2022

Comments

  • Riju Mahna
    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
      Dave Everitt about 11 years
      Needs to go on serverFault?
  • Riju Mahna
    Riju Mahna about 11 years
    many 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
    Dave Everitt about 11 years
    Yes, check the Apache config file to ensure that it is enabled: look for something like --enable-reqtimeout
  • Riju Mahna
    Riju Mahna about 11 years
    There 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
    Dave Everitt about 11 years
    try adding the required entry to httpd.config and check for errors... but take a look to see if it's in your Apache install's mods-available dir.
  • Dave Everitt
    Dave Everitt about 11 years
    PS 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 in mods-available but not mods-enabled.