This file should contain the following lines.
AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /dev/null
AuthName ravish
AuthType Basic
require user ravish
In case you wish to add multiple users add the following lines.
AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /etc/httpd/conf/.htgroup
AuthGroupFile /dev/null
AuthName ravish
AuthType Basic
require user ravish