I've never come across this error before and a search on Google doesn't turn up much. I'm getting 500 Internal Server Error. Running Ubuntu 18.04.
Apache log:
AuthType takes one argument, an HTTP authorization
type (e.g., "Basic")
.htaccess
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
/etc/apache2/.htpasswd
test:$apr1$iAZiDJQI$kx5QMVpowee3IG7eCf24X1
I've tried moving .htpasswd to the document root, changing permissions, setting owner to www-data, nothing works. AuthUserFile path is definitely correct.