I created a test directory in my /var/www/html/ and the .htaccess and .htpasswd authentication works fine. But I need to do the same authentication into my user's public_html directory. For example, let's say I create a Test directory into my /home/user/public_html/test and then I place the .htaccess file so that it will be password protected. I cannot do it in public_html. I am able to run the authentication in /var/www/html. How can I configure the .htaccess and .htpasswd authenticantion in my public_html directory. So, that when I open up IE I will type www.site.com/~user/test/ and then I should be prompted for a login.