On Fri, 31 Mar 2000, Jeff Gleixner wrote:
> Ok, simple question. How to I modify the URI that gets logged? I
> understand how to write it to a different file and/or to a DBI, I just
> want to modify what's written to the standard access log.
>
> I want the URI set to a file that doesn't exist, but in a format that a
> log analyser and I can understand and includes info from various dynamic
> pieces I'm setting with Mason. I'd like to do this for one
> 'special.html' file.
try the patch below along with something like so:
$r->the_request(join ' ', $r->method, "/bubba/gump.html", $r->protocol);
--- src/modules/perl/Apache.xs 2000/04/03 03:11:14 1.90
+++ src/modules/perl/Apache.xs 2000/04/03 04:24:24
@@ -1303,11 +1303,11 @@
RETVAL
char *
-the_request(r)
+the_request(r, ...)
Apache r
CODE:
- RETVAL = r->the_request;
+ get_set_PVp(r->status_line,r->pool);
OUTPUT:
RETVAL