1

Topic: awstats for new domains

Hi,

The default config of iredmail is working fine for one main domain.

Now we have added 3 new domains to postfix and also generated DKIM keys for this 3 new domains.

In apache, should I create new log files for this new domains? I want to run awstats for web + email traffic for 3 virtual domains added.

Please let me know.

RIchard

2

Re: awstats for new domains

No need to config awstats, coz web+mail log into same log file, and awstats will parse them.

3

Re: awstats for new domains

Hi,

You mean I will keep only one access.log and error.log file?

Richard

4

Re: awstats for new domains

Apache logs into one log file by default, so no addition change is required for awstats.
If your web server logs into multiple files for virtual hosts, you have to config awstats to parse them.

You can create new config files for awstats by simply copy existing awstats file, then change virtual host related settings, e.g. path to log file.

5

Re: awstats for new domains

Do I need to make any changes in the cronjob if I make multiple access_log files for multiple domains  l? current cron job is as follows

1   */1   *   *   *   perl /var/www/awstats/awstats.pl -config=mail.domain.net -update >/dev/null
1   */1   *   *   *   perl /var/www/awstats/awstats.pl -config=mail -update >/dev/null

6

Re: awstats for new domains

Yes.
Also, you can put awstats commands in a shell script, and just run it with one cron job.