Skip to content

Instantly share code, notes, and snippets.

@lurcio
lurcio / htpasswd-add-user
Created April 24, 2012 09:30
Add user to htpasswd file
sudo htpasswd /path/to/password/file anotheruser
@lurcio
lurcio / htpasswd-file
Created April 24, 2012 09:16
Create htpasswd file
sudo htpasswd -c /path/to/password/file username
@lurcio
lurcio / apache-basic-auth
Created April 24, 2012 09:07
Apache 2.2 Basic Authentication
AuthType Basic
AuthName "Restricted Files"
AuthBasicProvider file
AuthUserFile /path/to/password/file
Require user valid-user