Password-protect a directory with .htaccess

# htpasswd -c /var/www/shop/.htpasswd deploy

AuthType Basic
AuthName "Staging"
AuthUserFile /var/www/shop/.htpasswd
Require valid-user