lemonldap-ng/_example/etc/test-nginx.conf
François-Xavier Deltombe b83ca9d9b2 pass $apacheRequest object to functions in parameters
instead of as a global var (#630)
2014-05-23 10:23:51 +00:00

33 lines
819 B
Plaintext

#====================================================================
# Nginx configuration for LemonLDAP::NG sample applications
#====================================================================
# Sample application
server {
listen *:80;
server_name test1.example.com test2.example.com;
# SSO protection
location / {
auth_request /auth;
error_page 403 @maybe302;
proxy_pass http://target.example.com/;
}
set $redirectURL "";
location @maybe302 {
if ($redirectURL) {
rewrite .* $redirectURL redirect;
}
return 403;
}
location = /auth {
perl Lemonldap::NG::Handler::run;
more_set_input_headers "Toto: tata";
}
# DocumentRoot
root /usr/local/lemonldap-ng/htdocs/test/;
autoindex on;
}