mod_watchcat 1.0
Sponsored Links
mod_watchcat 1.0 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
1296
Date added:
2006-04-06
Publisher:
Michel Machado and Andre Nathan
mod_watchcat 1.0 description
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/mod_watchcat.so
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.
CatType type handler [ handler...]
This directive creates a new type, which will be used on the other configuration directives for the settings that will affect the specified handlers. The default type is automatically created, and doesnt accept any handlers. It is meant to be a "catch-all" for the handlers not specifically declared.
CatTimeout type timeout
This directive associates a timeout (in seconds) with the specified type. The default timeout (used for the default type) is 60 seconds.
CatOrder type [ type...]
This directive defines the matching order for the list of types specified as a parameter.
CatLogHandler
This directive is used to log the handlers of the requests. It is useful do find out the names of the handlers to be used on the CatType directive.
Configuration Examples
The configuration below defines the type script to contain the application/x-httpd-php, application/x-perl and application/x-cgi handlers. The timeout for this type is then set to 60 seconds. The default timeout (for requests that dont match the the script type is set to 1800 seconds. Finally, the matching order is set so that requests for the script type are handled before those for the default type.
CatType script application/x-httpd-php application/x-perl application/x-cgi
CatTimeout script 60
CatTimeout default 1800
CatOrder script default
The next example sets a timeout of 0 for static page handlers. This means that watchcat will not monitor those requests.
CatType static text/html text/plain
CatType static application/x-httpd-php-source
CatTimeout static 0
CatOrder static default
The example below shows how inheritance works on the configuration of mod_watchcat. The configuration specified for the /home directory inherits the global configuration but uses a different timeout value.
CatType perl application/x-perl application/x-cgi
CatTimeout perl 60
CatTimeout default 1800
CatOrder perl default
< Directory /home >
CatTimeout perl 30
< /Directory >
The next example shows a configuration that will set a timeout for PHP scripts and ignore the other handlers (note that specifying the default handler explicitly is not necessary.)
CatType php application/x-httpd-php
CatTimeout php 90
CatOrder php
This example shows how to disable the timeouts for a given directory.
CatTimeout default 3600
CatOrder default
< Directory /var/www/htdocs >
# Disable timeouts
CatTimeout default 0
< /Directory >
Enabling mod_watchcat
To enable mod_watchcat, you need to add the following directive to the Apache configuration file:
LoadModule watchcat_module modules/mod_watchcat.so
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.
CatType type handler [ handler...]
This directive creates a new type, which will be used on the other configuration directives for the settings that will affect the specified handlers. The default type is automatically created, and doesnt accept any handlers. It is meant to be a "catch-all" for the handlers not specifically declared.
CatTimeout type timeout
This directive associates a timeout (in seconds) with the specified type. The default timeout (used for the default type) is 60 seconds.
CatOrder type [ type...]
This directive defines the matching order for the list of types specified as a parameter.
CatLogHandler
This directive is used to log the handlers of the requests. It is useful do find out the names of the handlers to be used on the CatType directive.
Configuration Examples
The configuration below defines the type script to contain the application/x-httpd-php, application/x-perl and application/x-cgi handlers. The timeout for this type is then set to 60 seconds. The default timeout (for requests that dont match the the script type is set to 1800 seconds. Finally, the matching order is set so that requests for the script type are handled before those for the default type.
CatType script application/x-httpd-php application/x-perl application/x-cgi
CatTimeout script 60
CatTimeout default 1800
CatOrder script default
The next example sets a timeout of 0 for static page handlers. This means that watchcat will not monitor those requests.
CatType static text/html text/plain
CatType static application/x-httpd-php-source
CatTimeout static 0
CatOrder static default
The example below shows how inheritance works on the configuration of mod_watchcat. The configuration specified for the /home directory inherits the global configuration but uses a different timeout value.
CatType perl application/x-perl application/x-cgi
CatTimeout perl 60
CatTimeout default 1800
CatOrder perl default
< Directory /home >
CatTimeout perl 30
< /Directory >
The next example shows a configuration that will set a timeout for PHP scripts and ignore the other handlers (note that specifying the default handler explicitly is not necessary.)
CatType php application/x-httpd-php
CatTimeout php 90
CatOrder php
This example shows how to disable the timeouts for a given directory.
CatTimeout default 3600
CatOrder default
< Directory /var/www/htdocs >
# Disable timeouts
CatTimeout default 0
< /Directory >
mod_watchcat 1.0 Screenshot
mod_watchcat 1.0 Keywords
CatTimeout
CatType
CatOrder
Apache 2
apache 2 webserver
to provide
WatchCat
mod
default
type
configuration
timeout
mod_watchcat
modwatchcat
mod_watchcat 1.0
HTTP
Bookmark mod_watchcat 1.0
mod_watchcat 1.0 Copyright
WareSeeker periodically updates pricing and software information of mod_watchcat 1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of mod_watchcat 1.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
car type
default mail client
configuration management training
timeout trailers
myspace default layouts
gateway timeout
watchcat downloads
electron configuration
timeout nyc
configuration control
defaulted student loans
cat types
type url
default layouts
configuration management
timeout new york
configuration file
default email
Related Software
mod_auth_sanba allows you use Windows user database for user password authentication and ndbm database. Free Download
mod-auth-pipe is a module of authentication written for Apache 1 (it hasnt been tested with Apache 2, but it may work). Free Download
mod_vhs is an Apache 2.0/2.1 Web server module allowing mass virtual hosting without the need for file-based configuration. Free Download
mod_streamav is an Apache 2 filter that scans the content of the Apache Brigades using the Clamav virus scanning engine. Free Download
mod_vhost_dbi creates virtual hosts for Apache 2.0 completely dynamically. Free Download
mod_highlight provdes syntax highlighting as an Apache 2.0 Filter Module. Free Download
mod_auth_openid is an authentication module for the Apache 2 Web server. Free Download
mod_example_ipc module showcases the use in an Apache 2.0 module of the Shared Memory and Mutex routines. Free Download
Latest Software
Popular Software
Favourite Software