.htpasswd Apache Tips

To create the file

sudo htpasswd -c  .htpassword.CLIENT.PROJECT USERNAME

To add users to it

sudo htpasswd  .thenameofthefile USERNAME2

to configure a website (vhost) to use that file

 <Directory "/var/www/staging/PATH/TO/CLIENT/PROJECT/web">
        Options -Indexes
        AuthName "TD Staging Server"
        AuthType Basic
        AuthUserFile /var/www/staging/td/.htpassword.CLIENT.PROJECT
        Require valid-user
        AllowOverride All
        Allow from All

    </Directory>