handler-apache2.4.conf 1.95 KB
Newer Older
Xavier Guimard's avatar
Xavier Guimard committed
1
#========================================================================
2
# Apache configuration for LemonLDAP::NG Handler
Xavier Guimard's avatar
Xavier Guimard committed
3 4 5 6 7 8 9 10 11 12 13
#========================================================================
# 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
14 15 16

# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
17
PerlModule Lemonldap::NG::Handler::ApacheMP2
18 19

# Common error page and security parameters
20
ErrorDocument 403 http://auth.__DNSDOMAIN__/lmerror/403
21
ErrorDocument 404 http://auth.__DNSDOMAIN__/lmerror/404
22
ErrorDocument 500 http://auth.__DNSDOMAIN__/lmerror/500
23
ErrorDocument 502 http://auth.__DNSDOMAIN__/lmerror/502
24
ErrorDocument 503 http://auth.__DNSDOMAIN__/lmerror/503
25 26 27 28 29 30 31 32

<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>
33
        Require ip 127 ::1
34
        SetHandler perl-script
35
        PerlResponseHandler Lemonldap::NG::Handler::ApacheMP2->reload
36 37 38 39
    </Location>

    # Uncomment this to activate status module
    #<Location /status>
40
    #    Require ip 127 ::1
41
    #    SetHandler perl-script
42
    #    PerlResponseHandler Lemonldap::NG::Handler::ApacheMP2->status
43 44 45
    #    # You may have to uncomment the next directive to skip
    #    # an upper PerlHeaderParserHandler directive
    #    #PerlHeaderParserHandler Apache2::Const::DECLINED
46 47
    #</Location>

48 49
    # Uncomment this if site if you use SSL only
    #Header set Strict-Transport-Security 15768000
50 51 52
</VirtualHost>