#==================================================================== # 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; }