Skip to content

Instantly share code, notes, and snippets.

@meaku
Created August 20, 2013 08:44
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 meaku/6278844 to your computer and use it in GitHub Desktop.
Save meaku/6278844 to your computer and use it in GitHub Desktop.
Conditional BasicAuth
# enable basic auth for dev systems
SetEnvIfNoCase Host dev\.host\.com passreq
AuthType Basic
AuthName "Testing"
AuthUserFile htuser
Require valid-user
Order deny,allow
Deny from env=passreq
Satisfy any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment