This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
to your server template in the apache section.
I think that as long as you (also) have webalizer active that the .stats-htpasswd is created and updated.
well tinus,
the easiest way seems to be adding this:
<Files "awstats.pl">
AuthUserFile ${HOME}/.stats-htpasswd
AuthName "Restricted Area"
AuthType Basic
require valid-user
</Files>
to your server template in the apache section.
I think that as long as you (also) have webalizer active that the .stats-htpasswd is created and updated.