25 lines
677 B
Plaintext
25 lines
677 B
Plaintext
PerlOptions +GlobalRequest
|
|
<VirtualHost *>
|
|
ServerName protected.example.com
|
|
PerlRequire /var/lib/lemonldap-ng/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>
|
|
|
|
# Optional interception of the logout URL => single logout
|
|
# if not done in configuration interface
|
|
<Location /logout>
|
|
PerlHeaderParserHandler My::Package->logout
|
|
</Location>
|
|
</VirtualHost>
|