Created
October 9, 2013 10:33
-
-
Save tkhn/6899277 to your computer and use it in GitHub Desktop.
exclude one url from basic auth with apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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