perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Grau <ch...@chrisgrau.com>
Subject Re: help on setting up a PerlFixupHandler
Date Wed, 06 Aug 2003 17:53:08 GMT
On Wed, Aug 06, 2003 at 07:41:20PM +0200, Xavier Noria wrote:
>     package Dispatcher;
> 
>     use Apache::Constants ':common';
> 
>     sub handler {
>         my $r = shift;
> 
>         return DECLINED if $r->content_type ne 'text/html';
>         return SERVER_ERROR unless $r->can_stack_handlers;
> 
>         $r->handler('perl-script');
>         $r->set_handlers(PerlHandler => ['ContentHandler']);
> 
>         return OK;
>     }
> 
>     1;
> 
> without luck however, keeps on looking under the document root
> for /admin. Should that change be enough?

Are you sure the content-type is "text/html"?  Since you have your own
<Location> handler, Apache is probably using the value from the
DefaultType directive which, I think, defaults to "text/plain" when Apache
is installed.

-chris

Mime
View raw message