2007-01-04 09:42:13 +01:00
|
|
|
PerlOptions +GlobalRequest
|
|
|
|
<VirtualHost 127.0.0.3:*>
|
|
|
|
|
|
|
|
ServerName test.example.com
|
|
|
|
PerlRequire __DIR__/handler/MyHandler.pm
|
2007-01-04 17:17:40 +01:00
|
|
|
PerlHeaderParserHandler My::Package
|
2007-01-04 09:42:13 +01:00
|
|
|
<Location /reload>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
Allow from 127.0.0.0/8
|
2007-01-04 17:17:40 +01:00
|
|
|
PerlHeaderParserHandler My::Package->refresh
|
2007-01-04 09:42:13 +01:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
# Just to make example running (index.pl display authenticated user)
|
|
|
|
DocumentRoot __DIR__
|
|
|
|
<Directory __DIR__>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
2008-02-01 09:34:28 +01:00
|
|
|
Options +ExecCGI
|
2007-01-04 09:42:13 +01:00
|
|
|
</Directory>
|
|
|
|
<Files *.pl>
|
|
|
|
SetHandler perl-script
|
|
|
|
PerlResponseHandler ModPerl::Registry
|
|
|
|
</Files>
|
|
|
|
|
|
|
|
<IfModule mod_dir.c>
|
|
|
|
DirectoryIndex index.pl index.html
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
</VirtualHost>
|