I solved this issue with a Plack middleware for the vast Booking.com Mason
codebase (we migrated away from Apache to nginx/uWSGI). Haven't open
sourced it yet, but if anyone's interested in the details before I do that
poke me.
On Jun 15, 2013 2:28 AM, "Sérgio Basto" <ser...@serjux.com> wrote:
> 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.
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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