handler-nginx.conf 938 Bytes
Newer Older
1
2
3
4
5
6
7
8
#====================================================================
# Nginx configuration for LemonLDAP::NG Handler
#====================================================================

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

# Common error page and security parameters
9
10
error_page 500 http://auth.__DNSDOMAIN__/?lmError=500;
error_page 503 http://auth.__DNSDOMAIN__/?lmError=503;
11
12

server {
13
14
    listen __VHOSTLISTEN__;
    server_name reload.__DNSDOMAIN__;
15
16

    # Configuration reload mechanism (only 1 per physical server is
17
    # needed): choose your URL to avoid reloading Nginx when
18
19
20
21
    # configuration change
    location /reload {
        allow 127.0.0.0/8;
        deny all;
22
        perl Lemonldap::NG::Handler::reload;
23
24
25
26
27
28
    }

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