I am using mod_rewrite to map username's last names to their row_id in my person database. The Perl script I am using to do this *works* I have tested it. I try to follow the KISS design philosphy. example I/O session with this script: # ./facmap.pl userlastname<ENTER> 53 It spits out the row_id if it gets a valid last name. Now I am using RewriteMap prg: to get this mapping in Apache as follows: RewriteMap faculty_map prg:/usr/local/bin/facmap.pl RewriteRule ^/faculty/([^/]*)(/*.*) /webdir/fp$2?id=${faculty_map:$1} [L] This *works*! I know it does. I have seen it! :) Now, the problem is that it *stops* *working*! After a certain amount of time, the map gets munged. I have to restart or reload or graceful apache to get the map working properly again! Things I do know: * The perl script works on its own. * The rewrite rules are doing waht I want them to do when I first start Apache * I upgraded the server software recently as follows: * Apache 1.3.23 -> 1.3.27 * PHP 4.3.1 -> 4.3.2 * MySQL 3.23.23 (?) -> 2.23.56 * RHL 7.2 -> RHL9 I mention these upgrades because I had the same basic rewrite rules before the upgrade and they never seemd to get munged. * I tried adding a RewriteLock directive but it did not seem to help. Things I do NOT know: * How much time passes before the problem occurs. * *what* is causing the problem * How to get the system to log this problem ( I tried bumping up the RewriteLogLevel to 2 and 3 but this did not seem to capture the event). Thanks!
What do you mean with "stops working"? doesn't respond anymore? Returns wrong data?
Maybe it is related to Bug 14453?
yes, is the same bug.
Well, then I'll link this report to the other one. After the missing vote for backport into the stable branches the fix will be done. Thanks. *** This bug has been marked as a duplicate of 14453 ***
We are using Apache/2.2.4, but we are still facing the same problem. Basically what happens is that user A starts, getting pages asked by user B. The same problem was faced by another user and is mentioned at: http://www.pubbs.net/httpd/200810/23667/ Thanks!
This bug was originally reported against Apache HTTP Server 1.3 and marked as FIXED/DUPLICATE of bug 14453. The reopening comment 5 and the referred post seem to point to a different bug with RewriteLock. If this bug is still reproducible in a recent version, please open a new bug so we can keep track of it.