You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.9 KiB
52 lines
1.9 KiB
#========================================================================
|
|
# Apache configuration for LemonLDAP::NG Handler
|
|
#========================================================================
|
|
# This file implements the reload virtualhost that permits to reload
|
|
# configuration without restarting server, and some common instructions.
|
|
# You need then to declare this vhost in reloadUrls (in the manager
|
|
# interface if this server doesn't host the manager itself):
|
|
#
|
|
# KEY : VALUE
|
|
# host-or-IP:port : http://reload.example.com/reload
|
|
#
|
|
# IMPORTANT:
|
|
# To protect applications, see test-apache.conf template in example files
|
|
|
|
# Load LemonLDAP::NG Handler
|
|
PerlOptions +GlobalRequest
|
|
PerlModule Lemonldap::NG::Handler::ApacheMP2
|
|
|
|
# Common error page and security parameters
|
|
ErrorDocument 403 http://auth.__DNSDOMAIN__/lmerror/403
|
|
ErrorDocument 404 http://auth.__DNSDOMAIN__/lmerror/404
|
|
ErrorDocument 500 http://auth.__DNSDOMAIN__/lmerror/500
|
|
ErrorDocument 502 http://auth.__DNSDOMAIN__/lmerror/502
|
|
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>
|
|
Require ip 127 ::1
|
|
SetHandler perl-script
|
|
PerlResponseHandler Lemonldap::NG::Handler::ApacheMP2->reload
|
|
</Location>
|
|
|
|
# Uncomment this to activate status module
|
|
#<Location /status>
|
|
# Require ip 127 ::1
|
|
# SetHandler perl-script
|
|
# PerlResponseHandler Lemonldap::NG::Handler::ApacheMP2->status
|
|
# # You may have to uncomment the next directive to skip
|
|
# # an upper PerlHeaderParserHandler directive
|
|
# #PerlHeaderParserHandler Apache2::Const::DECLINED
|
|
#</Location>
|
|
|
|
# Uncomment this if site if you use SSL only
|
|
#Header set Strict-Transport-Security 15768000
|
|
</VirtualHost>
|
|
|
|
|
|
|