Linux Apache creates access passwords for Awstats

Source: Internet
Author: User

CentOS7 installed the latest version of Awstats, added alias in httpd.conf, you can access the URL directly into the browsing. is not safe.

To add a password to the access method:


[[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 restrictions to Awstats: Alias/awstatscss "/home/awstats/wwwroot/css/" Alias/ Awstatsicons "/home/awstats/wwwroot/icon/" scriptalias/awstats/"/home/awstats/wwwroot/cgi-bin/" # # this was to permit URL access to Scripts/files in AWStats directory.#<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>



A prompt to enter a password will appear when re-accessing http://www.zbphp.com/awstats/awstats.pl (by default7#zbphp.com):




Linux Apache creates access passwords for Awstats

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.