I noticed with the Virtualmin export feature that the Apache htpasswd sometimes doesn’t carry through when you import the package, you’ll end up with an error similar to this:
[Tue Jan 19 10:54:22.551737 2016] [core:alert] [pid 28447] [client 126.96.36.199:55007] /home/website/public_html/.htaccess: Invalid command 'AuthGroupFile', perhaps misspelled or defined by a module not included in the server configuration
To fix this error, you’ll need to enable the
authz_groupfile module, for example on Ubuntu, you can use this command:
Restart Apache and it’ll start working as usual again.