kesto.de Cheatsheets

Apache

HTTP authentication (login; password protect a directory)

htpasswd -c .htpasswd exampleuser

.htaccess:

AuthType Basic
AuthName "Protected directory"
AuthUserFile /full/path/to/.htpasswd
Require valid-user