Hureka, I realized this myself .. or what I think is to be a solution.
<VirtualHost (ip address):80> ServerName my.domain DocumentRoot /var/sites/sitename/ ServerAdmin ... <Directory /var/sites/sitename/> AuthUserFile /etc/apache2/.htpasswd AuthGroupFile /dev/null AuthName "What is the pw" AuthType Basic require user (username) </Directory> </VirtualHost>
.htpasswd can be created in the usual way via the command line,
EDIT: anthony in the comment below strongly recommends using https / SSL so that the password is not sent unencrypted.
source share