I am using Apache Red hat .
I have .htaccess in my /var/www/html with permissions as followed
-rwxr-xr-x. 1 apache apache 127 Dec 18 14:17 .htaccess
.htaccess has following data set inside it
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /var/www/html/server-auth/.htpasswd
Require user manu
Permissions on var/www/html/server-auth/.htpasswd
-rwxr-xr-x. 1 apache apache 40 Dec 16 19:11 .htpasswd
When I open my web page on browser, and after putting username and password, the login prompts reappears. Even if the username and password is correct.
Error logs:
(13) Permission denied: Could not open password file: /var/www/html/server-auth/.htpasswd
access to / failed, reason: verification of user id 'manu' not configured
Any help!