Skip to content

Instantly share code, notes, and snippets.

@reficedev
Created September 23, 2016 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reficedev/3d4070ee59f51383e70588966b39956d to your computer and use it in GitHub Desktop.
Save reficedev/3d4070ee59f51383e70588966b39956d to your computer and use it in GitHub Desktop.
SetEnvIf REQUEST_URI "/url_autorisee$" noauth=1
AuthType Basic
AuthName "Authorization Required"
AuthUserFile /xxx/xxx/xxxx/xxxxxx/xxxx/.htpasswd
Order deny,allow
Satisfy any
Deny from all
Allow from env=noauth
Allow from env=REDIRECT_noauth
Require valid-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment