Another idea in the same direction:

Use a RewriteMap on every request and have the
rewrite map do something ressuorce intensive.

...

<VirtualHost *:80>
    RewriteEngine On
    RewriteMap    mymap       prg:/tmp/tmp.pl

    RewriteRule ^/(.*) ${mymap:$1}


And the map /tmp/tmp.pl:
        
#!/usr/bin/perl -w

use strict;

#   disable buffered I/O which would lead
#   to deadloops for the Apache server
$| = 1;

while (<>) {
        sleep 5; # FIXME: Find something ressource-intensive here
        print "\n";
}


Mod_rewrite is fairly early in the request lifecycle.
So I am using it quite often in such a way when running
tests. (Mostly timing issues, where sleep is good enough)

just another 2 cents worth of info.

Christian



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to