Here is the solution I use. Is there is a better way around this?
- edit the main template at /usr/local/cpanel/etc/awstats.conf
- add the following to the very last line of the file:
Include "%AWSTATSDIR%custom.txt"
Next time stats are run and /tmp/awstats/awstats.domainname.com.conf is recreated, it will have the "include" line at the end (which will translate to /tmp/awstats/custom.txt)
Any directives in your include file take precedence over values in the conf file. One note: you'll need to create a custom.txt file in all /tmp/awstats/ directories (even if blank) otherwise an error occurs when viewing stats for a particular domain.
Rick