PerlOptions +GlobalRequest ServerName test.example.com PerlRequire __DIR__/handler/MyHandler.pm # Area protection PerlHeaderParserHandler My::Package # Configuration reload mechanism (only 1 per physical server is # needed): choose your URL to avoid restarting Apache when # configuration change Order deny,allow Deny from all Allow from 127.0.0.0/8 PerlHeaderParserHandler My::Package->refresh # Uncomment this to activate status module # # Order deny,allow # Deny from all # Allow from 127.0.0.0/8 # PerlHeaderParserHandler My::Package->status # # Just to make example running (index.pl display authenticated user) DocumentRoot __DIR__ Order allow,deny Allow from all Options +ExecCGI SetHandler perl-script PerlResponseHandler ModPerl::Registry DirectoryIndex index.pl index.html