38 lines
887 B
Plaintext
38 lines
887 B
Plaintext
<VirtualHost 127.0.0.3:*>
|
|
ServerName test.example.com
|
|
|
|
PerlRequire __DIR__/handler/MyHandler.pm
|
|
PerlHeaderParserHandler My::Package
|
|
<Location /reload>
|
|
Order deny,allow
|
|
Deny from all
|
|
Allow from 127.0.0.0/8
|
|
PerlHeaderParserHandler My::Package->refresh
|
|
</Location>
|
|
|
|
# Uncomment this to activate status module
|
|
#<Location /status>
|
|
# Order deny,allow
|
|
# Deny from all
|
|
# Allow from 127.0.0.0/8
|
|
# PerlHeaderParserHandler My::Package->status
|
|
#</Location>
|
|
|
|
# Just to make example running (index.pl display authenticated user)
|
|
DocumentRoot __DIR__
|
|
<Directory __DIR__>
|
|
Order allow,deny
|
|
Allow from all
|
|
Options +ExecCGI
|
|
</Directory>
|
|
<Files *.pl>
|
|
SetHandler perl-script
|
|
PerlHandler Apache::Registry
|
|
</Files>
|
|
|
|
<IfModule mod_dir.c>
|
|
DirectoryIndex index.pl index.html
|
|
</IfModule>
|
|
|
|
</VirtualHost>
|