Re: apache2 with autoindex and directory index, solved but it was hard .
Ævar Arnfjörð Bjarmason <[email protected]> Sat, 15 Jun 2013 14:29:36 +0200
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CACBZZX6zAaXigds9AaN=P7ZoV2Xyd=mgEt973oDW0FQUCVJqGw@mail.gmail.com> |
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" <[email protected]> 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users