Configuring Awstats for ispconfig
Hi, I've built a script and a template config file for awstats to work automatically with ispconfig/apache2. Just put it in a cron job and let it do the work. It works for me, though I don't use any authentication for the stats themselves.
Also, it needs a template file for awstats.
Last, you need to add a couple of lines in your apache2.conf file to create a logfile that can be used by awstats properly:
-----
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual_combined
# Add this log file for use with Awstats
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/awstats_access_log /var/log/httpd/awstats_access_log_%Y_%m_%d" virtual_combined
-----
Use it at your own risk :-)
Konstantinos
Last edited by feanor; 15th September 2005 at 13:08.
|