Skip to content

Instantly share code, notes, and snippets.

@hansspiess
Created April 21, 2013 12:52
Show Gist options
  • Save hansspiess/5429487 to your computer and use it in GitHub Desktop.
Save hansspiess/5429487 to your computer and use it in GitHub Desktop.
let test uri pass trough htaccess password protection
SetEnvIf Request_URI "/uri.php$" test_uri
Order Deny,Allow
AuthUserFile /path/to/.htpasswd
AuthName "Bitte Anmelden"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
#Allow valid-user
Deny from all
Allow from env=test_uri
Satisfy any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment