2013-05-31 06:54:20 +02:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG Handler
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
|
|
|
|
|
|
|
# Load LemonLDAP::NG Handler
|
|
|
|
PerlOptions +GlobalRequest
|
2016-02-10 22:45:07 +01:00
|
|
|
PerlModule Lemonldap::NG::Handler
|
2013-05-31 06:54:20 +02:00
|
|
|
|
|
|
|
# Common error page and security parameters
|
|
|
|
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
|
|
|
|
ErrorDocument 500 http://auth.__DNSDOMAIN__/?lmError=500
|
|
|
|
ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
|
|
|
|
|
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName reload.__DNSDOMAIN__
|
|
|
|
|
|
|
|
# Configuration reload mechanism (only 1 per physical server is
|
|
|
|
# needed): choose your URL to avoid restarting Apache when
|
|
|
|
# configuration change
|
|
|
|
<Location /reload>
|
2014-06-19 19:12:45 +02:00
|
|
|
Require ip 127 ::1
|
2014-06-19 19:04:02 +02:00
|
|
|
PerlHeaderParserHandler Lemonldap::NG::Handler->reload
|
2013-05-31 06:54:20 +02:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
# Uncomment this to activate status module
|
|
|
|
#<Location /status>
|
2014-06-19 19:12:45 +02:00
|
|
|
# Require ip 127 ::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
|
2013-05-31 06:54:20 +02:00
|
|
|
#</Location>
|
|
|
|
|
2016-02-11 10:36:12 +01:00
|
|
|
# Uncomment this if site if you use SSL only
|
|
|
|
#Header set Strict-Transport-Security 15768000
|
2013-05-31 06:54:20 +02:00
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
|