Skip to content

Instantly share code, notes, and snippets.

@xemoe
Created May 7, 2015 05:38
Show Gist options
  • Save xemoe/8e76fa3753ac3e7ea5c8 to your computer and use it in GitHub Desktop.
Save xemoe/8e76fa3753ac3e7ea5c8 to your computer and use it in GitHub Desktop.
Apache basic authen
# Create htpasswd
htpasswd -c ${filename} ${username}
# Create htaccess file
AuthUserFile ${filename}
AuthType Basic
AuthName "${message}"
Require valid-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment