Skip to content

Instantly share code, notes, and snippets.

@tkhn
Created October 9, 2013 10:33
Show Gist options
  • Save tkhn/6899277 to your computer and use it in GitHub Desktop.
Save tkhn/6899277 to your computer and use it in GitHub Desktop.
exclude one url from basic auth with apache
<location />
SetEnvIf Request_URI "/callback/.*" REDIRECT_noauth=1
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/httpd/passwords/passwords
Order Deny,Allow
Satisfy any
Deny from all
Allow from env=REDIRECT_noauth
Require user yournickname
</location>
# 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