为awstats日志查看添加密码验证

vim /usr/local/apache2/conf/httpd.conf

<Files "awstats.pl">
    AuthType Basic
    AuthName "awstat access"
    AuthUserFile "/usr/local/awstats/htpasswd.users"
    Require valid-user
</Files>

然后

/usr/local/apache2/bin/htpasswd -c /etc/awstats/htpasswd admin

New password:
Re-type new password:
Adding password for user admin

/usr/local/apache2/bin/apachectl stop

/usr/local/apache2/bin/apachectl start

即可

你可能感兴趣的:(apache,日志系统,awstats,密码验证,休闲)