handler-apache2.4.conf 1.32 KB
Newer Older
1 2 3 4 5 6 7 8 9
#====================================================================
# Apache configuration for LemonLDAP::NG Handler
#====================================================================

# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__

# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
10
PerlRequire Lemonldap/NG/Handler.pm
11 12 13 14 15 16 17 18 19 20 21 22 23

# 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>
24
        Require ip 127 ::1
25
        PerlHeaderParserHandler Lemonldap::NG::Handler->reload
26 27 28 29
    </Location>

    # Uncomment this to activate status module
    #<Location /status>
30
    #    Require ip 127 ::1
31 32 33 34 35
    #    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
36 37 38 39 40
    #</Location>

</VirtualHost>