![Xavier Guimard](/assets/img/avatar_default.png)
* UTF8 support in Manager * Beginning of Debian-like installation for other distributions
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
<VirtualHost 127.0.0.3:*>
|
|
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
|
|
<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>
|