Skip to content

Instantly share code, notes, and snippets.

@DavidMikeSimon
Created April 7, 2015 18:16
Show Gist options
  • Select an option

  • Save DavidMikeSimon/a3d408bad1b2192faa1c to your computer and use it in GitHub Desktop.

Select an option

Save DavidMikeSimon/a3d408bad1b2192faa1c to your computer and use it in GitHub Desktop.
Auth by cookie OR password
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