Created
October 27, 2014 23:12
-
-
Save cameri/d716852e154496c270ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name test.example.com; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log debug; | |
root /srv/test.example.com; | |
auth_ldap_url "ldap://10.8.0.238/dc=example,dc=com?samaccountname?sub?(objectClass=user)"; | |
auth_ldap_binddn "[email protected]"; | |
auth_ldap_binddn_passwd "mySpecialPassword"; | |
location /ldapprotectedspace { | |
auth_ldap "Restricted Space"; | |
auth_ldap_require valid_user; | |
auth_ldap_satisfy any; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment