2,187
edits
m (→Other: Added location of cron job) |
(→Add a Site: Added additional parameters) |
||
Line 416: | Line 416: | ||
# Create a specific config file for the site to monitor | # Create a specific config file for the site to monitor | ||
#* <code> cp /etc/awstats/awstats.conf /etc/awstats/awstats.mysite.com.conf </code> | #* <code> cp /etc/awstats/awstats.conf /etc/awstats/awstats.mysite.com.conf </code> | ||
# Edit the config file for the site, specifically | # Edit the config file for the site, specifically (see below for further options) | ||
#* <code> LogFile=”/path/to/your/domain/access.log” </code> | #* <code> LogFile=”/path/to/your/domain/access.log” </code> | ||
#* <code> LogFormat=1 </code>(this will give you more detailed stats) | #* <code> LogFormat=1 </code>(this will give you more detailed stats) | ||
Line 428: | Line 428: | ||
#* <code> crontab -e </code> | #* <code> crontab -e </code> | ||
#* EG every 30 mins <code> */30 * * * * /bin/perl /usr/lib/cgi-bin/awstats.pl -config=mysite.com -update >/dev/null </code> | #* EG every 30 mins <code> */30 * * * * /bin/perl /usr/lib/cgi-bin/awstats.pl -config=mysite.com -update >/dev/null </code> | ||
Further options | |||
* Wiki sites (and other sites where an URL parameter can specify a specific page | |||
** <code> URLWithQuery=1 </code> - useful for Wiki's etc where query param indicates a different page | |||
** <code> URLWithQueryWithOnlyFollowingParameters="title" </code> - only treats variances in param title as distinct pages | |||
** <code> URLReferrerWithQuery=1 </code> follows on from two above | |||
=== Other === | === Other === |