Hi all, Yes, it did -- thanks Martin and Jonathan for your replies. I actually don't have a startup script [not sure if I should??], so the block below is in my httpd.conf.
And I never thought about checking the error logs before I posted...but after checking, it said "Can't locate Apache2/Const/NOT_FOUND.pm", so I probably would have done something strange like tried to install "NOT_FOUND.pm"... The Perl block below did the trick! Thanks for your help! Ray Bradley C Bailey wrote: > Oops, I forgot to send my response to the list. This solved his problem. > > Bradley C Bailey > > ---------------------------- Original Message ---------------------------- > Subject: Re: [Mason] Access control to .mas, *handler files > From: "Bradley C Bailey" <[EMAIL PROTECTED]> > Date: Wed, November 21, 2007 11:03 pm > To: "Raymond Wan" <[EMAIL PROTECTED]> > -------------------------------------------------------------------------- > > Ray, > > I have used both methods successfully in Apache 2.x. I would check your > error_log, but I suspect that you have not loaded Apache2::Const. In my > startup.pl file I have: > > use Apache2::Const -compile => ':common'; > > You could also do that in a <Perl> block. > > PerlHandler was mod_perl 1.x syntax, for 2.x you would want to use the > PerlInitHandler as it is earlier on in the request cycle. > > Hope that helps, > Bradley C Bailey > ------------------------------------------------------------------------- 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