Set password with .htaccess
htpasswd -c /path/to/.htpasswd username
AuthType Basic AuthName "Password Protected Area" AuthUserFile /path/to/.htpasswd Require valid-user