handler-nginx.conf 982 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#====================================================================
# Nginx configuration for LemonLDAP::NG Handler
#====================================================================

# Load LemonLDAP::NG Handler
perl_require Lemonldap/NG/Handler.pm;

# Common error page and security parameters
#error_page 403 http://auth.example.com/?lmError=403;
#error_page 500 http://auth.example.com/?lmError=500;
#error_page 503 http://auth.example.com/?lmError=503;

server {
    listen *:80;
    server_name reload.example.com;

    # Configuration reload mechanism (only 1 per physical server is
    # needed): choose your URL to avoid restarting Apache when
    # configuration change
    location /reload {
        allow 127.0.0.0/8;
        deny all;
        perl Lemonldap::NG::Handler::refresh;
    }

    # Uncomment this to activate status module
    #location /status {
    #    allow 127.0.0.0/8;
    #    deny all;
    #    perl Lemonldap::NG::Handler::refresh;
    #}
}