mod_traf_thief
Description -
Directives -
Download -
Install -
Examples -
Copyright
Description:
This simple module allows you to redirect percent of traffic to your url.
For example you have free-based hosting services and you need to redirect each 100 request to your resource
From virtual host user1.free.com.
mod_traf_thief allow you to do this.
Directives:
You can use this directives in Location,Directory,Files,Files,VirtualHost sections but not in .htaccess files.
* ThiefEnable
Syntax: ThiefEnable (On|Off)
Context: directory,location,files,filesmatch,virtualhost
Override: NONE
Specifies Enabled or disabled traf_thief module.
* ThiefPeriod
Syntax: ThiefEnable period value
Context: directory,location,files,filesmatch,virtualhost
Override: NONE
Specifies digital period what request need to be redirected
Must be integer.
Default value is 1000
* ThiefUrl
Syntax: ThiefEnable url
Context: directory,location,files,filesmatch,virtualhost
Override: NONE
Url for traffic redirection to.
Must starts from http:// or /
Download:
Lastest version of module is availible here: http://web.god.net.ru/projects/mod_traf_thief/dist/
Install:
Note: mod_traf_thief requires Apache 2.x, tested on httpd-2.0.42
To install this module change working directory to mod_traf_thief.c dir and type this command.
Note: apxs must be in PATH env.
apxs -c -i -c ./mod_traf_thief.c
Restart apache web server by typing: apachectl restart
Examples:
For example:
I need to redirect each 38 request from virtualhost user1.host.com to http://mail.ru website.
In directive i add:
ThiefEnable On
ThiefPeriod 38
ThiefURL http://mail.ru
Copyright:
This module maintained by Yuri A. Kabaenkov hellman@artofit.com (c) 2002