DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21975

mod_rewrite RewriteMap from external program gets "confused"

           Summary: mod_rewrite RewriteMap from external program gets
                    "confused"
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to