Gabriel C Millerd wrote:
> i want to make a apacher perlhandler method for <location /> (i think)
> that will check and see if my system state is ok (like database, jabber,
> and imap connectivity), and if not will redirect to another page.
>
> if everything is kosher i would like everything to move on like normal ...
> which handler method do i use for this.
sounds like a job for a PerlTransHandler...
if ($not_ok) {
$r->uri('/not_ok_page.html');
return DECLINED;
}
keep in mind that the PerlTransHandler cannot be applied to any
<Location> (or any other container like <Directory>) so it will
automatically apply to an entire (virtual) server.
HTH
--Geoff