Helpful Information
 
 
Category: Apache configuration
What is wrong with my htaccess file?

I placed this in one of my folders, and I placed the .htpasswd file where it is listed, and I get an internal server error when i try and access any file in that folder, or the folder itself:

AuthUserFile /home/MisterB/.htpasswd
AuthGroupFile /dev/null
AuthName Enter Code
AuthType Basic

require user misterb



What am I doing wrong?

EDIT:

When I switched out that htaccess file with this one below, I got a pop up box request for username/password, but I didn't give it a password!

AuthType Basic
AuthUserFile .htpasswd
AuthName "Register"
require user misterb


I'm confused how this is supposed to work. :confused:










privacy (GDPR)