What is mod_watchcat?

mod_watchcat is a module developed to provide watchcatd-awareness to the Apache 2 webserver. This allows a system administrator to set up timeouts for Apache processes, and thus provide protection against badly coded or malicious scripts. mod_watchcat can be configured to kill those resource-consuming processes before the server locks-up.

Enabling mod_watchcat

To enable mod_watchcat, you need to add the following directive to the Apache configuration file:

LoadModule watchcat_module modules/

Configuration directives

There are four directives available for the configuration of mod_watchcat: CatType, CatTimeout, CatOrder and CatLogHandler. They are described below. The mod_watchcat directives are not context-sensitive. This means they can be included anywhere on the Apache configuration, including the .htaccess file. This, however, requires the Options item on the AllowOverride directive.

Configuration Examples


Michel Machado

Andre Nathan

mod_watchcat copyright and license

mod_watchcat is licensed under the GNU General Public License (GPL).

Copyright (c) 2004-2014 Digirati.


Source tarball: mod_watchcat-1.1.2.tar.gz

mod_watchcat for Debian and Ubuntu is directly available from their respective package repositories as libapache2-mod-watchcat.