awstats

AWStats for multiple domains on same server using single install


I'm try to determine how to setting up AWStats for multiple sites on the server server. Ideally I would go to stats.mydomain.com and be able to see awstats for any site on my server. That is to say I don't want to have to set up stats.domain1.com, stats.domain2.com, ad nausea. Is it possible to create a single location and then switch between domains with via a form select. I feel I have seen this before, but have not found any web references.

I understand that I would need to still set up cron jobs, log files, etc to generate each domain individually. It's the centralized viewing that's important to me.

Any direction would be appreciated.


Solution

  • You'd probably have to create the domain selection form yourself, but maybe it helps to know that awstats.pl recognizes config=my.domain.name as an argument, so you can use something like http://stats.mydomain.com/awstats/awstats.pl?config=another.domain.com to see stats of various domains on one site.