While trying to password protect a directory with .htaccess, I am receiving "Internal server error".
The browser asks me for login username and password, and after I enter correct details, it shows me this "Internal server error" error.
If there was some issue with .htaccess or .htpasswd files, then popup box for entering username and password should not get visible.
I wonder what might be the issue on my new server.
authtype basic authuserfile /var/www/vhosts/abc.com/httpdocs/admin/.htpasswd authname "Secure Area" require user admin
Both .htaccess and .htpasswd files are in the same folder.
Moreover if I include this line in .htaccess file, it shows internal server error WITHOUT asking me any username or password.