Was steht denn drin in phpinfo.php?
https://code.fastix.org/Projekte/PHP%3AReplacement für phpinfo()/
Test: https://home.fastix.org/test401/ (Anmeldung abbrechen...)
AuthType basic
AuthName "Test401"
AuthUserFile ".htpasswd"
Require valid-user
ErrorDocument 401 /phpinfo.php