I have edited .htaccess on the directory
Code:
AuthName "Entre com seu usuário e senha. Atenção, o acesso a esse site é restrito a pessoas autorizadas, respeite a privacidade dos outro!!!"
AuthType Basic
AuthUserFile "/var/www/ivan/.user.pwd"
Require valid-users
Then i have done
Code:
htpasswd2 -c /var/www/ivan/.user.pwd user
Tried to access but even trying the right password it gives me
Code:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.