2010-03-12 12:46:01 +01:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG Handler
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
|
|
|
|
|
|
|
# Load LemonLDAP::NG Handler
|
|
|
|
PerlOptions +GlobalRequest
|
2014-05-21 19:44:24 +02:00
|
|
|
PerlRequire Lemonldap/NG/Handler.pm
|
2010-03-12 12:46:01 +01:00
|
|
|
|
|
|
|
# Common error page and security parameters
|
2010-09-28 16:40:50 +02:00
|
|
|
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
|
|
|
|
ErrorDocument 500 http://auth.__DNSDOMAIN__/?lmError=500
|
2012-03-01 12:04:49 +01:00
|
|
|
ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
|
2010-03-12 12:46:01 +01:00
|
|
|
|
2010-07-28 16:34:38 +02:00
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName reload.__DNSDOMAIN__
|
|
|
|
|
2010-03-12 12:46:01 +01:00
|
|
|
# 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
|
2014-06-19 19:12:45 +02:00
|
|
|
Allow from 127.0.0.0/8 ::1
|
2014-06-19 19:04:02 +02:00
|
|
|
PerlHeaderParserHandler Lemonldap::NG::Handler->reload
|
2010-03-12 12:46:01 +01:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
# Uncomment this to activate status module
|
|
|
|
#<Location /status>
|
|
|
|
# Order deny,allow
|
|
|
|
# Deny from all
|
2014-06-19 19:12:45 +02:00
|
|
|
# Allow from 127.0.0.0/8 ::1
|
2014-06-19 18:52:10 +02:00
|
|
|
# SetHandler perl-script
|
|
|
|
# PerlResponseHandler Lemonldap::NG::Handler->status
|
|
|
|
# # You may have to uncomment the next directive to skip
|
|
|
|
# # an upper PerlHeaderParserHandler directive
|
|
|
|
# #PerlHeaderParserHandler Apache2::Const::DECLINED
|
2010-03-12 12:46:01 +01:00
|
|
|
#</Location>
|
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
2010-07-28 16:34:38 +02:00
|
|
|
|