Skip to content

Instantly share code, notes, and snippets.

@curegit
Created August 7, 2018 15:32
Show Gist options
  • Save curegit/386e88c31caaf020e55572c970d62f3a to your computer and use it in GitHub Desktop.
Save curegit/386e88c31caaf020e55572c970d62f3a to your computer and use it in GitHub Desktop.
Require SSL for basic auth
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