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

Reply via email to