Forked from tkhn/apache-exclude-urls-basic-auth.conf
Created
August 19, 2020 10:33
-
-
Save DRRDietrich/32d4322db101e07cf0537ac6aa813f6a 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