Hi Ray, > I guess this is a modperl problem, but I am sure many Mason users have > added this configuration which I saw for Apache (1.x) in the Mason > book. If I don't want other people to see my .mas and *handler files > in Apache 2, and adapting the example from Apache 1 with some web > searching led me to either: > > <FilesMatch "(\.mas|dhandler|autohandler|syshandler)$"> > SetHandler perl-script > PerlInitHandler Apache2::Const::NOT_FOUND > </FilesMatch> > > <FilesMatch "(\.mas|dhandler|autohandler|syshandler)$"> > Order allow,deny > Deny from all > </FilesMatch> > > The second one says "access denied" but the first one is giving me an > "Internal Server Error". Result code 500? Is there some configuration > that I have done wrong? The relevant lines from my httpd.conf are: > > PerlModule HTML::Mason::ApacheHandler > PerlModule Apache2::Const > PerlSetVar MasonArgsMethod 'mod_perl'
IIRC it can be solved by a startup script for mod_perl. Mine looks like /----- /etc/apache2/mod_perl-startup.pl ----- |#!/usr/bin/perl |use Apache2::Const -compile => 'HTTP_NOT_FOUND'; |use Apache2::Const -compile => ':common'; |1; \-------- and is activated via /----- /etc/apache2/conf.d/mod_perl.conf ----- | <IfModule mod_perl.c> | PerlPostConfigRequire "/etc/apache2/mod_perl-startup.pl" | </IfModule> \--------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users