Created
August 7, 2018 15:32
-
-
Save curegit/386e88c31caaf020e55572c970d62f3a to your computer and use it in GitHub Desktop.
Require SSL for basic auth
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
ErrorDocument 401 "Unauthorized Access" | |
RewriteEngine off | |
SSLRequireSSL | |
AuthUserFile "_________.htpasswd" | |
AuthName "Authorization Required" | |
AuthType BASIC | |
require valid-user | |
order deny,allow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment