in reply to Mod_perl2 Apache Module
What ways have you tried? I'm sure you know these two pieces of info are in the standard apache.log where you can parse them out easily. If you mean in real time within mod_perl to do something with:
use Apache2::RequestRec (); use Apache2::Connection (); sub handler { my $r = shift; # the path portion of the URI my $uri = $r->uri(); # the connection object my $c = $r->connection(); # from which we get my $remote_ip = $c->remote_ip(); # whatever }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mod_perl2 Apache Module
by overworked (Novice) on Apr 24, 2008 at 13:15 UTC |