You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Randy J. Ray" <rj...@redhat.com> on 2001/12/07 17:05:14 UTC

Detecting and linking to Apache::Status

For the next release of my RPC::XML package, I plan to roll out a status 
tracker akin to Apache::Status in mod_perl, only to monitor/examine the RPC
servers being managed by the mod_perl-ennabled Apache server. I would like to
have the main page of this Apache::RPC::Status system offer a link to
/perl-status, or whatever the correct URI is, if Apache::Status is available.

Is there a way to detect whether Apache::Status is assigned to a location as a 
handler, and if so, what the URI for this handler is? On a related note, how 
much information is available to me at run-time about other locations? Is it 
possible to tell things like authorization settings, etc., about a URI from 
within a running mod_perl?

Randy
-- 
-------------------------------------------------------------------------------
Randy J. Ray     | Men occasionally stumble over the truth, but most of them
rjray@redhat.com | pick themselves up and hurry off as if nothing had happened.
+1 408 543-9482  |   -- Sir Winston Churchill



Re: Detecting and linking to Apache::Status

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
"Randy J. Ray" wrote:
> 
> For the next release of my RPC::XML package, I plan to roll out a status
> tracker akin to Apache::Status in mod_perl, only to monitor/examine the RPC
> servers being managed by the mod_perl-ennabled Apache server. I would like to
> have the main page of this Apache::RPC::Status system offer a link to
> /perl-status, or whatever the correct URI is, if Apache::Status is available.

I would go the other way - add your handler right to Apache::Status. 
so, basically /perl-status would have

Perl Configuration
...
Apache::RPC Status

of course, the cookbook has a recipe on how to do this, but you can
find the relevant info in the Apache::Status manpage :)

> 
> Is there a way to detect whether Apache::Status is assigned to a location as a
> handler, and if so, what the URI for this handler is? 

not really, but you won't need to know this if you hang your routine
off of Apache::Status directly.

> On a related note, how
> much information is available to me at run-time about other locations? Is it
> possible to tell things like authorization settings, etc., about a URI from
> within a running mod_perl?

look into subrequests...

--Geoff