CentOS7 installs the latest version number Awstats, adds alias in httpd.conf, and is able to access the website directly by visiting the URL. is not safe.
How to add password to the interview:
[[email protected] wwwroot]# htpasswd-bc/home/awstats/wwwroot/.htpasswd AAA 123456[[email protected] wwwroot]# Nano/et c/httpd/conf/httpd.conf #改动 Apache configuration file. Add limit to Awstats: Alias/awstatscss "/home/awstats/wwwroot/css/" Alias/awstatsicons "/home/awstats/wwwroot/icon/" scriptalias/awstats/"/home/awstats/wwwroot/cgi-bin/" # # This was to the permit URL access to Scripts/files in Awstats Director Y.#<directory "/home/awstats/wwwroot" > Options None allowoverride none authname "Members Only" AuthType Basic AUTHUSERFILE/HOME/AWSTATS/WWWROOT/.HTPASSWD require valid-user #Require all granted</directory>
In another interview, Http://www.zbphp.com/awstats/awstats.pl will appear with the hint to enter password (by default7#zbphp.com):
Linux Apache Creates an interview for Awstats password