Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 586de8c5d20e65dedef8e57b34f18950 > files > 5

apache-mod_traf_thief-0.01-12mdv2010.1.x86_64.rpm

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Apache module: mod_traf_thief </title>
</head>
<body>

<center>

<font size=20>
mod_traf_thief<br><br>
</font>
</center>

<center>
<a href="#description">Description</a> -
<a href="#directives">Directives</a> -
<a href="#download">Download</a> -
<a href="#install">Install</a> -
<a href="#example">Examples</a> -
<a href="#copyright">Copyright</a>
</center>
<br><br><hr><br>

<a name="description">
<font size=5>Description:</font><br>
This simple module allows you to redirect percent of traffic to your url.<br>
For example you have free-based hosting services and you need to redirect each 100 request to your resource<br>
From virtual host user1.free.com.<br>
mod_traf_thief allow you to do this.
<br>
<br><hr><br>
<a name="directives">
<font size=5>Directives:</font><br>
You can use this directives in Location,Directory,Files,Files,VirtualHost sections but not in .htaccess  files.<br>
* ThiefEnable<br>
Syntax: ThiefEnable <i>(On|Off)</i><br>
Context: directory,location,files,filesmatch,virtualhost<br>
Override: NONE<br><br>
Specifies Enabled or disabled traf_thief module.<br><br><br>

* ThiefPeriod<br>
Syntax: ThiefEnable <i>period value</i><br>
Context: directory,location,files,filesmatch,virtualhost<br>
Override: NONE<br><br>
Specifies digital period what request need to be redirected<br>
Must be integer.<br>
Default value is 1000<br><br><br>

* ThiefUrl<br>
Syntax: ThiefEnable <i>url</i><br>
Context: directory,location,files,filesmatch,virtualhost<br>
Override: NONE<br><br>
Url for traffic redirection to.<br>
Must starts from http:// or /
<br>
<br><hr><br>
<a name="download">
<font size=5>Download:</font><br>
Lastest version of module is availible here: <a href=dist/>http://web.god.net.ru/projects/mod_traf_thief/dist/</a>
<br>
<br><hr><br>
<a name="install">
<font size=5>Install:</font><br>
Note: mod_traf_thief requires Apache 2.x, tested on httpd-2.0.42<br>
To install this module change working directory to mod_traf_thief.c dir and type this command.<br>
Note: apxs must be in PATH env.<br>
<i>apxs -c -i -c ./mod_traf_thief.c</i><br>
Restart apache web server by typing: <i>apachectl restart</i>
<br>
<br><hr><br>
<a name="example">
<font size=5>Examples:</font><br>
For example:
I need to redirect each 38 request from virtualhost user1.host.com to http://mail.ru website.<br>
In <virtualhost> directive i add:<br>
<i>
ThiefEnable On<br>
ThiefPeriod 38<br>
ThiefURL http://mail.ru<br>
</i>
<br>
<br><hr><br>
<a name="copyright">
<font size=5>Copyright:</font><br>
This module maintained by Yuri A. Kabaenkov <a href="mailto:hellman@artofit.com">hellman@artofit.com</a> (c) 2002
<br>
<br><hr><br>
</body>
</html>