Htaccess configuration with password (htpasswd)

I think you need the absolute path to the file like so:

Authtype Basic
AuthName "Put whatever you want here"
AuthUserFile /var/www/vhosts/<hostname>/httpdocs/<path to your passwd file>
Require valid-user