tags:

views:

9

answers:

1

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.

A: 

I haven't kept up with AWStats for a couple of years, but still have some installs sticking around.

Generally, you can set up a fairly basic VirtualHost or ScriptAlias type thing in apache (pointing at the same awstats dir on disk), and then copy tweak some kind of awstats.sitetemplate.conf file, and then add a line to some script that gets called by cron to process stats.

There may be a better way these days ... the above is not exactly painful, but not exactly painless.

But AFAIK, that's the best you can do.

I'll be watching the thread to see if anyone else has a better answer.

timdev