#======================================================================== # 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 # Uncomment this if no previous NameVirtualHost declaration #NameVirtualHost "*:80" # Load LemonLDAP::NG Handler PerlOptions +GlobalRequest PerlModule Lemonldap::NG::Handler # Common error page and security parameters ErrorDocument 403 http://%%authWebName/?lmError=403 ErrorDocument 404 http://%%authWebName/?lmError=404 ErrorDocument 500 http://%%authWebName/?lmError=500 ErrorDocument 502 http://%%authWebName/?lmError=502 ErrorDocument 503 http://%%authWebName/?lmError=503 ServerName %%reloadWebName # Configuration reload mechanism (only 1 per physical server is # needed): choose your URL to avoid restarting Apache when # configuration change = 2.3> Require ip 127 ::1 Order Deny,Allow Deny from all Allow from 127.0.0.0/8 ::1 SetHandler perl-script PerlResponseHandler Lemonldap::NG::Handler->reload SSLEngine on SSLCertificateFile %%apache_cert SSLCertificateKeyFile %%server_key SSLProtocol all -SSLv3 -SSLv2 # Uncomment this to activate status module # # = 2.3> # Require ip 127 ::1 # # # Order Deny,Allow # Deny from all # Allow from 127.0.0.0/8 ::1 # # 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 # # Uncomment this if site if you use SSL only #Header set Strict-Transport-Security 15768000