Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flashvnn/d4a9d3c3bb6625bfd9cc4b9630283bb3 to your computer and use it in GitHub Desktop.
Save flashvnn/d4a9d3c3bb6625bfd9cc4b9630283bb3 to your computer and use it in GitHub Desktop.
exclude one url from basic auth with apache
SetEnvIfNoCase Request_URI "^/status\.php" noauth
AuthType Basic
AuthName "Identify yourself"
AuthUserFile /path/to/.htpasswd
Require valid-user
Order Deny,Allow
Deny from all
Allow from env=noauth
Satisfy any
# credits to http://stackoverflow.com/questions/8978080/htaccess-exclude-one-url-from-basic-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment