Hi, Mason people 
I lost one night and of other day to discover the problem because your
quick and dirty example in
http://www.masonhq.com/htmlmason/wiki/HandlingDirectoriesWithDhandlers
just works if you define perl-script 
$r->handler eq 'perl-script'
and not when define modperl

so please update wiki with attach and provide a full example that works
(please) 
PerlRequire /etc/apache2/fixup_handler.pl
<VirtualHost *:80>
    CustomLog "logs/mason-access.log" combined
    ErrorLog "logs/mason-error.log"
    PerlModule Apache2::Request
    DefaultType text/html
    PerlSetVar MasonDataDir "/var/cache/mason"
    PerlSetVar MasonErrorMode fatal
    PerlSetVar MasonArgsMethod mod_perl
    PerlSetVar MasonDeclineDirs 0 
    SetHandler modperl
    PerlHandler HTML::Mason::ApacheHandler
    PerlFixupHandler Apache2::DirectoryFixup                   
    DirectoryIndex index.html
</VirtualHost>

Thanks, 
-- 
Sérgio M. B.

Attachment: fixup_handler.pl
Description: Perl program

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to