I created the .htaccess file as well as password file. the htaccess file looks like AuthType Basic AuthName "Restricted Area" AuthUserFile /dir1/dir2/auth/restricted.pwd AuthGroupFile /dir1/dir2/auth/restricted.grp require valid-user the restricted password file contains the username/password admin_user:2gE9XovzMavhw After restarting apache i can still see the directoryis there something i am missing?do i need to install a specific module in apache?
First check if the mod rewrite is compiled on the server. Command to check it is Consider referring error log files as well. They will report errors which might help to fix the issue.
Check your Apache configuration file and make sure that you have ‘AllowOverride AuthConfig’ directive within the ‘DocumentRoot’ directory entry. Also, the password file should be readable by Apache.