Linux Apache creates an interview for Awstats password

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.