>>>>> "John" == John Ingram <[EMAIL PROTECTED]> writes:
John> The problem is that I believe Apache is doing it's own internal request
John> for the static error page and displaying the contents of that page to
John> the user, in response to the request that they made for some other URL.
John> For example, I issue a request for /cgi-bin/foo.pl -- which fails for
John> some reason. When I get the Error 500 in my browser I'm seeing the URL
John> of /cgi-bin/foo.pl, but the actual message that I see, if other than the
John> Apache default, it the contents of /error/500.html... but I wasn't
John> actually redirected to the page. This was some sort of Apache internal
John> request that it made to process the error. Am I making any sense?
John> Anyway, the original URL that was requested is what, in my view, should
John> be logged in the table for error codes. Has anybody dealt with this
John> problem before? I was going to go into DBILogger and see if I can get
John> it to log whatever the original request URI was, but figured I wouldn't
John> reinvent the wheel if somebody has already done this.
Yes. The Stonehenge::DBILog that I put into WebTechniques last month
doesn't do that, because it gets the URI not from $r->uri but from the
second word of splitting $r->the_request on whitespace. You might
consider that change. (I figured this out by looking at the C
code for the real log code. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!