Created
April 7, 2015 18:16
-
-
Save DavidMikeSimon/a3d408bad1b2192faa1c to your computer and use it in GitHub Desktop.
Auth by cookie OR password
This file contains hidden or 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
| Order allow,deny | |
| Require valid-user | |
| Satisfy any | |
| AuthType Basic | |
| AuthName "Protected Login" | |
| AuthUserFile /path/to/.htpasswd | |
| SetEnvIf Cookie "(/api/.(.*))$" is_sample_cookie=yes | |
| Allow from env=is_sample_cookie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment