2168575 发表于 2019-1-30 07:46:04

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

  vim /usr/local/apache2/conf/httpd.conf
  
    AuthType Basic
    AuthName "awstat access"
    AuthUserFile "/usr/local/awstats/htpasswd.users"
    Require valid-user

  然后
  /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
  即可



页: [1]
查看完整版本: 为awstats日志查看添加密码验证