I´m prompted for a password, but I´m not sure which login details I should use. The Virtualmin user details don´t work.
In the directory I want to protect an .htaccess file was created with the following rules:
AuthUserFile "/home/user/public_html/test/htusers"
AuthType Basic
AuthName "This is the text that the user will see when being prompted for a password."
require valid-user
However the htusers file is empty.
Did something go wrong or am I supposed to manually add users?
Hmm, it looks like a step may be missing from those directions!
You’re right, you need to specify which users would be allowed to access the directory.
To do that, go into Edit Mail and FTP Users, and select the user you wish to give rights to see that directory.
Once you do, click “Other User Permissions”, and you should see an option named "
“Allow access to web directories”. There, you can specify which protected directories that user should be allowed to access.