lemonldap-ng/_example/etc/handler-nginx.conf
2014-06-19 17:12:45 +00:00

35 lines
977 B
Plaintext

#====================================================================
# Nginx configuration for LemonLDAP::NG Handler
#====================================================================
# Load LemonLDAP::NG Handler
perl_require Lemonldap/NG/Handler.pm;
# Common error page and security parameters
error_page 500 http://auth.__DNSDOMAIN__/?lmError=500;
error_page 503 http://auth.__DNSDOMAIN__/?lmError=503;
server {
listen __VHOSTLISTEN__;
server_name reload.__DNSDOMAIN__;
# Configuration reload mechanism (only 1 per physical server is
# needed): choose your URL to avoid reloading Nginx when
# configuration change
location /reload {
allow 127.0.0.0/8;
allow ::1;
deny all;
perl Lemonldap::NG::Handler::reload;
}
# Uncomment this to activate status module
#location /status {
# allow 127.0.0.0/8;
# allow ::1;
# deny all;
# perl Lemonldap::NG::Handler::status;
#}
}