lemonldap-ng/_example/etc/handler-nginx.conf
2014-05-22 10:10:40 +00:00

35 lines
982 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 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;
#}
}