don't worried, I had make it work now.
just change the PerlInitHandler to PerlHandler.
it is ok.
Mike.G
2008/4/20, Mike. G <[EMAIL PROTECTED]>:
>
> Hi, all
> I had read the docuemnt about the developer manaual and administrator
> manual.
>
> one issue for:
> when I don't want to anyboday can see my autohandler and the other priviae
> componments, I use some configuration like this:
>
> PerlModule HTML::Mason::ApacheHandler
> 83 PerlModule Apache2::Const
> 84
> 85 <FilesMatch "(\.html|\.pl)$">
> 86 SetHandler perl-script
> 87 PerlHandler HTML::Mason::ApacheHandler
> 88 </FilesMatch>
> 89
> 90 <FilesMatch "(\.m(html|txt|pl|as)|dhandler|autohandler)$">
> 91 SetHandler perl-script
> 92 PerlInitHandler Apache2::Const::NOT_FOUND
> 93 </FilesMatch>
>
>
> but the apache say: can't locate the package named:
> Apache2::Const::NOT_FOUND
> and give the error code 500
>
> and I change that:
> to
>
> PerlInitHandler "sub { return Apache2::Const::NOT_FOUND }"
>
> this time, it work. but show my autohander's content to me.
>
> why?
>
> how can I fixed this?
>
> My mason version is : 1.3.9
>
> Perl version is 5.10.0
>
> mod_perl version is 2.0.4
>
> thanks very much.
>
> Mike.G
>
>
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users