Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:
The Handler:PerlOptions +Parent PerlSwitches -I/media/lib PerlModule MyLib::SiteAuth <Directory "/path/to/website/docs"> PerlAccessHandler MyLib::SiteAuth::access Options ExecCGI FollowSymLinks AllowOverride None order deny,allow deny from all </Directory>
That does not work. The request is forbidden. But if I switch the order directive to allow,deny then have the script return FORBIDDEN it doesn't work that way either. I've tried a few of the other directives (grant, require) and I just can't seem to find the right one.package MyLib::SiteAuth; use Apache2::Access; use Apache2::Log; use Apache2::RequestIO; use Apache2::RequestUtil; use Apache2::Response; use Apache2::SubRequest; use Apache2::URI; sub access { my $request = shift; $request->log_error(" - handler accessed"); return Apache2::Const::OK; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache 2.4, mod_perl and PerlAccessHandler
by poj (Abbot) on Mar 10, 2016 at 08:26 UTC | |
by Rodster001 (Pilgrim) on Mar 10, 2016 at 16:24 UTC |