go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Protect your Awstats statistics with password
 
Subject: Protect your Awstats statistics with password
Author: AwsEC2
In response to: Awstats update cron job on AWS EC2 instance
Posted on: 09/11/2012 08:48:19 PM

For most cases, you may want to prevent your web statistics from public access. You can do it by protecting your script directory with a password challenge.

Replace what in 'Step 1. Set global permisstion for the AWStats directory' with the following:

<Directory /usr/local/awstats/wwwroot/cgi-bin>
    AuthType Basic
    AuthName "AWStats - Web, FTP, and Mail Statistics"
    AuthUserFile /usr/local/awstats/wwwroot/.awstats.pwd
    Require valid-user
</Directory>


For details, please check the link below:

How to protect Apache web resources

 

> On 09/10/2012 08:31:24 PM AwsEC2 wrote:

Finally, a simpler version (fixed time) of cron job is placed:
$ cat /etc/cron.d/awstats
45 03 * * * root /usr/local/awstats/tools/awstats_updateall.pl  now 
  -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl 
  -configdir=/etc/awstats/ >/dev/null 2>&1






References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.