now i have moved that folder to apache server and created one .htaccess and one .htpasswd file for that folder now what my .htaccess file contains is
AuthName "Authorized Users Only."
AuthType Basic
AuthUserFile .htpasswd
Require user username
and what my .htpasswd file contains is,
username:password
but when I ran it it gaves me authorization required dialogbox asking me to enter username and password when i entered the username and password which I have stored in .htpasswd file. It doesn't allowed me to login. Is there any changes required in .htaccess or .htpasswd file?