chown apache:apache /var/hda/web-apps/appname/.htpasswd
chown apache:users /var/hda/web-apps/appname/html/.htaccess}}
* That's all there is to it. Now when a HDA user accesses the web application, they will be greeted with a pop windows asking for user name and password.